- Home /
Question by
Monops · Feb 07, 2012 at 11:59 PM ·
shadercustom-shader
Extend SurfaceOutput or send additional parameters to the light model
Is there a way to extend "SurfaceOutput" writing a custom light model? If not, is there a way to send the light model additional parameter?
Comment
Answer by ScroodgeM · Jul 19, 2012 at 06:59 PM
declare a property in CGPROGRAM block (also like external parameters from shader)
assign a value in 'surf' method
read a value in lighting model
Your answer
Follow this Question
Related Questions
How can I pass world position to a custom lighting function for a surface shader? 1 Answer
Creating a fogless version of a built-in shader 1 Answer
Custom shader dissappear on mobile 0 Answers
What's faster? Two draw calls or a black/white alpha blend? 2 Answers
Shader error: Shader program of type 'vp' already exists at line .... 1 Answer