forked from LeenkxTeam/LNXSDK
Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9
This commit is contained in:
@ -90,6 +90,10 @@ def make(context_id, rpasses):
|
||||
elif rid == 'Raytracer':
|
||||
make_raytracer(con_mesh)
|
||||
|
||||
if mat_state.material.lnx_solid:
|
||||
if rid == 'Forward':
|
||||
con_mesh.frag.write('fragColor[0].rgb = mix(basecol, fragColor[0].rgb, mixColor);')
|
||||
|
||||
make_finalize.make(con_mesh)
|
||||
|
||||
assets.vs_equal(con_mesh, assets.shader_cons['mesh_vert'])
|
||||
@ -107,6 +111,10 @@ def make_base(con_mesh, parse_opacity):
|
||||
tesc = None
|
||||
tese = None
|
||||
|
||||
if mat_state.material.lnx_solid:
|
||||
if lnx.utils.get_rp().rp_renderer == 'Forward':
|
||||
frag.add_uniform('float mixColor', '_mixColor')
|
||||
|
||||
billboard = mat_state.material.lnx_billboard
|
||||
if billboard == 'spherical':
|
||||
vert.add_uniform('mat3 N', '_normalMatrixSphere')
|
||||
@ -192,7 +200,7 @@ def make_base(con_mesh, parse_opacity):
|
||||
if(con_mesh.is_elem('ipos')):
|
||||
vert.write('wposition = vec4(W * spos).xyz;')
|
||||
sh.add_uniform('mat4 VP', '_viewProjectionMatrix')
|
||||
sh.write('wposition += wnormal * disp;')
|
||||
sh.write('wposition += disp;')
|
||||
sh.write('gl_Position = VP * vec4(wposition, 1.0);')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user