-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
broken water translucency on station15 map #120
Comments
For testing purpose a snapshot of for-0.51.0 assets (including station15 map) can be fetched this way: wget -O- http://gg.illwieckz.net/dl/unvanquished/dev/UnvanquishedAssets.get | xargs wget |
Here is one example of buggy material: // Crappy water with leaves
textures/station15_custom/water2
{
qer_editorImage textures/station15_custom_src/leaves_d
qer_trans .3
q3map_globaltexture
entityMergable
surfaceparm nobuild
surfaceparm trans
surfaceparm water
surfaceparm nonsolid
surfaceparm nolightmap
cull disable
tesssize 64
deformVertexes wave 64 sin .8 1.5 2 .8
{
map textures/station15_custom_src/water_d
rgbGen const ( .8 .8 .3 )
alphaGen const .2
blendfunc blend
tcMod scroll .03 .001
}
{
map textures/station15_custom_src/waterfall_r
alphagen const .3
blendfunc blend
rgbGen const ( .8 .9 1 ) // ← this line
tcmod scale .2 1
tcGen environment
}
{
map textures/station15_custom_src/leaves_d
blendfunc blend
AlphaFunc GE128
DepthWrite
}
} Notice the This is what produces the original material: This is what produces the same material but with that line commented out (disabled): This is what produces the same material but with that line moved before the I see no difference between without or before. Perhaps we have a bug where |
It looks like we have a fix in #181: |
See the waterfall and the pond (two different shaders):
Note there is also a problem with depth:
This is a third and similarly broken translucent water shader:
The text was updated successfully, but these errors were encountered: