Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shader hack ?
09-24-2014, 08:01 AM
Post: #1
Shader hack ?
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)
Find all posts by this user
Quote this message in a reply
09-24-2014, 11:36 AM (This post was last modified: 09-24-2014 11:36 AM by NaN.)
Post: #2
RE: Shader hack ?
(09-24-2014 08:01 AM)slickx Wrote: In order to view links, you must have to reply to this thread.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)


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
Find all posts by this user
Quote this message in a reply
09-24-2014, 08:58 PM
Post: #3
RE: Shader hack ?
not working...i need it to work so i can make the car windows reflective as well Smile
Find all posts by this user
Quote this message in a reply
09-25-2014, 08:10 AM
Post: #4
RE: Shader hack ?
Glass reflectivity is a separate issue. Afaik it is not implemented in gl3 renderer, gl2 might work though.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)