20 lines
479 B
C#
20 lines
479 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace RaytracerEngine
|
|||
|
{
|
|||
|
public abstract class hitable
|
|||
|
{
|
|||
|
public struct hit_record
|
|||
|
{
|
|||
|
public float t;
|
|||
|
public vec3 p;
|
|||
|
public vec3 normal;
|
|||
|
}
|
|||
|
public virtual bool hit(ray r, float t_min, float t_max, out hit_record rec) { rec = new hit_record(); return false; }
|
|||
|
}
|
|||
|
}
|