You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using a custom shader to make gradient colorization.
The gradient colorization is worked as I expected, but it is not somehow rendered completely like default built-in shaders.
I tried to use light source methods and material methods to create diffuse and ambient effects,
but failed to integrate camera position into it, as I don't know how to get it inside a shader program.
Is there anybody know about this? Could you give some hints?
Thank you in advance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I am using a custom shader to make gradient colorization.
The gradient colorization is worked as I expected, but it is not somehow rendered completely like default built-in shaders.
I tried to use light source methods and material methods to create diffuse and ambient effects,
but failed to integrate camera position into it, as I don't know how to get it inside a shader program.
Is there anybody know about this? Could you give some hints?
Thank you in advance.
Bill
Beta Was this translation helpful? Give feedback.
All reactions