I can't seem to get my transparent materials right. This is my material script:
Code: Select all
hlms Autoglas pbs
{
ambient 0.37 0.37 0.37
diffuse 0.37 0.37 0.37
specular 0.05 0.05 0.05
emissive 0.0 0.0 0.0
depth_write off
transparency_mode transparent
roughness 0.1
}
I also have another material which is supposed to use the transparency from the texture alpha:
hlms Spruce pbs
{
cull_mode none
depth_write off
transparency_mode transparent
alpha_from_textures true
diffuse_map Fichte_Col_2K.dds
roughness 1.0
}
Here is the problem that the transparent parts still seem to reflect light at some angles which looks very weird:
How can I make transparency work with my materials? Thanks in advance for any help.