-
I know that ”light.glsl” is a shader used in the light section, but what effect can it actually have? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
https://github.com/bnpr/Malt/tree/master/Malt/Pipelines/NPR_Pipeline#pipeline-shaders Light shaders let you specify the color/intensity contribution of a light at any given surface point. For the basic light example to work you need to set a texture, otherwise you are just projecting a black (ie. no intensity) light. Screen shaders are used for post-processing or any other kind of screen-space technique. For testing, you can use the CustomPipeline.py from the example folders. After loading, there will be a Custom Post Process parameter where you can use a screen shader material. |
Beta Was this translation helpful? Give feedback.
https://github.com/bnpr/Malt/tree/master/Malt/Pipelines/NPR_Pipeline#pipeline-shaders
Light shaders let you specify the color/intensity contribution of a light at any given surface point.
Think for example a projector, a bonfire, or any stylized lighting effects.
For the basic light example to work you need to set a texture, otherwise you are just projecting a black (ie. no intensity) light.
Screen shaders are used for post-processing or any other kind of screen-space technique.
To use them you need to declare and use them from a custom pipeline. You can select a custom pipeline in the world settings.
For testing, you can use the CustomPipeline.py from the example folders. After loading, …