iko79
08-29-2007, 01:18 AM
hi people!
i'd like to create a shader which is able to blend between several materials depending on the current y-value on the surface. since i saw a guy building something similar in a tutorial using layered textures i tried to create one using a layered shader. so i assigned two materials and connected the pointWorldY value of a sampler info utility (scaled by a set range util) with the transparencyR, -G and -B values of the upper layer. like i was afraid this only manipulates the color of the layer, doesn't work...
how can i blend the whole materials including highlights, bump and all that things? which input attributes do i have to use? or is there a whole different and better way to solve this task?
thanks for help!
i'd like to create a shader which is able to blend between several materials depending on the current y-value on the surface. since i saw a guy building something similar in a tutorial using layered textures i tried to create one using a layered shader. so i assigned two materials and connected the pointWorldY value of a sampler info utility (scaled by a set range util) with the transparencyR, -G and -B values of the upper layer. like i was afraid this only manipulates the color of the layer, doesn't work...
how can i blend the whole materials including highlights, bump and all that things? which input attributes do i have to use? or is there a whole different and better way to solve this task?
thanks for help!
