forked from LeenkxTeam/LNXSDK
Consolidate and update
This commit is contained in:
@ -241,8 +241,7 @@ def make(context_id, rpasses, shadowmap=False, shadowmap_transparent=False):
|
||||
vert.add_out('vec4 wvpposition')
|
||||
vert.write('wvpposition = gl_Position;')
|
||||
frag.write('float depth = (wvpposition.z / wvpposition.w) * 0.5 + 0.5;')
|
||||
frag.write('vec3 color = basecol;')
|
||||
frag.write('color *= 1.0 - opacity;')
|
||||
frag.write('vec3 color = mix(vec3(1.0), basecol, opacity);')
|
||||
frag.write('fragColor = vec4(color, depth);')
|
||||
|
||||
if parse_opacity and not shadowmap_transparent:
|
||||
|
||||
Reference in New Issue
Block a user