Skip to content
Discussion options

You must be logged in to vote

There's certainly code for it:

if (light.type == LIGHT_SUN)

However, lighting is computed inside a loop, so custom lighting is not doable withing the Inline Code node.
You may need to make a custom node instead.
You can check https://github.com/bnpr/Malt/blob/Development/Malt/Pipelines/NPR_Pipeline/Shaders/NPR_Pipeline/NPR_Shading2.glsl to see how the built-in Shading nodes are done.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant