![]() |
Shader hack ? - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3) +--- Forum: Feature Requests (https://www.vdrift.net/Forum/forumdisplay.php?fid=6) +--- Thread: Shader hack ? (/showthread.php?tid=1836) |
Shader hack ? - slickx - 09-24-2014 Nan can u assign the car body shader to the glass and have the transparency be set by a value in "car".car data file Example [glass] texture = glass.png, glass-misc1.png mesh = glass.joe alpha = 10 (where 100 is fully transparent) RE: Shader hack ? - NaN - 09-24-2014 (09-24-2014, 08:01 AM)slickx Wrote: Nan can u assign the car body shader to the glass and have the transparency be set by a value in "car".car data file I think setting color should do the job (need to check though): [glass] texture = glass.png, glass-misc1.png mesh = glass.joe color = 1, 1, 1, 0.5 #rgba, a=1 opaque, a=0 fully transparent glass.png is multiplyied by this color, allowing you to increase transparency of glass.png RE: Shader hack ? - slickx - 09-24-2014 not working...i need it to work so i can make the car windows reflective as well ![]() RE: Shader hack ? - NaN - 09-25-2014 Glass reflectivity is a separate issue. Afaik it is not implemented in gl3 renderer, gl2 might work though. |