A rendering engine that renders signed distance fields with different materials and lighting.
- Create
SDScene
with scene elements- Create
Lighting
object (usingIBackground
and variousILight
)- There are different types of backgrounds and lights to choose from
- Create one or many
SDObject
objects- Various methods such as
SDObject.Intersect
andSDObject.RepeatXYZ
can be used to create complex objects
- Various methods such as
- Add
Material
to eachSDObject
for shading - Create a
Camera
with specified screen dimensions - Adjust the camera's position and rotation to desired values
- The
Camera.LookAt
can help you easily look at a certain point in space
- The
- Create
- Create a
Renderer
object using theSDScene
- Render an
Image
using theRenderer.Render
method
- If the scene is washed out or too dark, you can either change the brightness of the lights or adjust the global exposure setting
RenderConfig.Exposure = 1f;
is the default
- You can change the maximum amount of reflections
RenderConfig.MaxReflections = 2;
is the default
- If shadows look messed up, make sure the softness value for each light isn't too high
- Values of
0f
to0.4f
work the best
- Values of