Merge pull request #2162 from MoritzBrueckner/fix-overlay-mats
Fix creation of overlay materials
This commit is contained in:
commit
df50ba397e
|
@ -1,8 +1,9 @@
|
||||||
import arm.material.cycles as cycles
|
import arm.material.make_finalize as make_finalize
|
||||||
import arm.material.mat_state as mat_state
|
|
||||||
import arm.material.make_mesh as make_mesh
|
import arm.material.make_mesh as make_mesh
|
||||||
|
import arm.material.mat_state as mat_state
|
||||||
import arm.material.mat_utils as mat_utils
|
import arm.material.mat_utils as mat_utils
|
||||||
|
|
||||||
|
|
||||||
def make(context_id):
|
def make(context_id):
|
||||||
con = { 'name': context_id, 'depth_write': True, 'compare_mode': 'less', 'cull_mode': 'clockwise' }
|
con = { 'name': context_id, 'depth_write': True, 'compare_mode': 'less', 'cull_mode': 'clockwise' }
|
||||||
mat = mat_state.material
|
mat = mat_state.material
|
||||||
|
@ -36,4 +37,6 @@ def make(context_id):
|
||||||
|
|
||||||
frag.write('fragColor.rgb = pow(fragColor.rgb, vec3(1.0 / 2.2));')
|
frag.write('fragColor.rgb = pow(fragColor.rgb, vec3(1.0 / 2.2));')
|
||||||
|
|
||||||
|
make_finalize.make(con_overlay)
|
||||||
|
|
||||||
return con_overlay
|
return con_overlay
|
||||||
|
|
Loading…
Reference in a new issue