I’ve got a main texture named _MainTex and I’ve got a texture _AdditiveTex, and I can’t seem to find how to chnage the blending mode of the additive texture…
If someone could point me in the right direction, thanks a bunch ahead of time.
I’ve got a main texture named _MainTex and I’ve got a texture _AdditiveTex, and I can’t seem to find how to chnage the blending mode of the additive texture…
If someone could point me in the right direction, thanks a bunch ahead of time.
The blending mode of a shader is what determines how the whole shader blends with the scene.
An additive shader has a blend mode
Blend One One
But blending between two textures within the the shader is different. Thats just a maths operation.
So, when you’ve done your texture reads you’ll have something like
fixed4 tex = tex2D(_MainTex, i.uv);
fixed4 AddTex= tex2D(_AdditiveTex, i.uv);
Then you just add the results of the reads together for “additive”. Or multiply them for multiplicative. Or you can lerp them.
tex+=addTex;
tex*=addTex;
tex = lerp(tex,addTex,addTex.a);
Hey thanks so much @tmcthee , sorry for not providing more info in the original post.