1#ifndef ALGEBRAIC_SHAPE_H
2#define ALGEBRAIC_SHAPE_H
vec4 OivASGetColor()
Returns the color (i.e.
bool OivASIsOpaque()
Returns true if the shape is opaque (i.e.
bool OivASSolveQuadric(in vec3 abc, inout vec2 roots)
Helper function to solve quadric of type -> a*x*x + b*x + c = 0.
bool OivASRayPlaneIntersection(in OivASRay ray, in vec4 plane, inout float t)
If 'ray' intersects 'plane', returns true and sets location of intersection in 't'.
void OivASVertexShaderEntry()
[Slot] VERTEX_SHADER_ENTRY Defines actions from the vertex shader such as initialize varying paramete...
float OivASGetOpacity()
Returns the opacity (i.e.
vec4 OivASComputeColor(in OivASPoint p)
[Slot] COMPUTE_COLOR Returns the color of the fragment.
bool OivASRayIntersection(in OivASRay ray, inout OivASPoint p)
[Slot] rayIntersection Computes the intersection between ray and shape.
Structure containing information about the the raycast intersection point.
Structure for parameters of the ray.