About Store Forum Documentation Contact



Post Reply 
Shader access to alpha channel.
Author Message
b1s Offline
Member

Post: #1
Shader access to alpha channel.
I'm not sure why I'm not getting this to work..

Im trying to get access on the alpha channel of the material I'm using for the object. For some reason I cannot get it to work.
What am I doing wrong here?

Vec4 col =Tex(Col,inTex).rgba;
return Vec4(0,col.a);
07-08-2011 08:12 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Shader access to alpha channel.
if material has base_0 and base_1 textures, then alpha (opacity) is stored in different place
Tex(Nrm,inTex).z

http://www.esenthel.com/wiki/index.php?t...Generation

investigate tutorial that uses "data/shader/Solid Mode Advanced.cpp"
07-09-2011 01:12 PM
Find all posts by this user Quote this message in a reply
Post Reply