structs and classes

Exercice Ia

a shader class that has a displacement, opacity and a surface method.
using: a shader class
Tips:

 

img

Exercice Ib

same as above, but with a private user method.
using: a shader class
Tips:

 

img

Exercice II

a shader class that has a construct and a begin method.
using: a shader class
Tips:

 

img

Exercice IIIa a shader class which brdf in defined in a separate method, and this method has a single struct as parameter and returns a color.
using: a struct
Tips:

 

img

Exercice IIIb

same as above, but the brdf method must not return anything (void type). The struct should be an output parameter instead and read back by the surface.
using: a struct
Tips:

 

img

 

 

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

 

 

- home - curriculum - competences - gallery -MEL scripts - shaders - contact - links -