Skip to content

How to use "light.glsl" and "screen.glsl". #65

Answered by pragma37
xiaocats asked this question in Q&A
Discussion options

You must be logged in to vote

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, …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xiaocats
Comment options

Answer selected by pragma37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants