Realtime Fractal Renderer Documentation
types.cl
Go to the documentation of this file.
1#ifndef TYPES_CL
3#define TYPES_CL
5
9typedef struct
10{
11 float3 position;
12 float3 direction;
13}
14Ray;
15
19typedef struct
20{
21 float3 ambient;
22 float3 diffuse;
23 float3 specular;
24 float shininess;
25}
27
31typedef struct
32{
33 float3 position;
34 float3 ambient;
35 float3 diffuse;
36 float3 specular;
37}
38Light;
39
40#endif
A struct representing a light, for use with the phong illumination model.
Definition: types.cl:32
float3 ambient
Definition: types.cl:34
float3 position
Definition: types.cl:33
float3 diffuse
Definition: types.cl:35
float3 specular
Definition: types.cl:36
A struct representing a geometry material, for use with the Phong reflection model.
Definition: types.cl:20
float3 ambient
Definition: types.cl:21
float3 diffuse
Definition: types.cl:22
float shininess
Definition: types.cl:24
float3 specular
Definition: types.cl:23
A struct representing a line in 3D space.
Definition: types.cl:10
float3 position
Definition: types.cl:11
float3 direction
Definition: types.cl:12