marsermd / SUSPENDED_H-Ray

Extensible multi-threaded raytracer in Haskell
MIT License
0 stars 0 forks source link

Implement data types representing scene and object properties #1

Open chshersh opened 6 years ago

chshersh commented 6 years ago

This README section should be described with pure data types. So I expect to have a single type for SceneObject which contains some properties (or functions which evaluates those properties using object fields as arguments). Data type for Scene is expected as well (maybe it's just [SceneObject] or maybe something more difficult).

Ray and Context types should be written as well.

Every type can be changed in future but it's always good to have some initial starting implementation.

I assume that 2D-raycer will be implemented.