luxe-colorpicker/materials/transparency_grid.material_basis.lx
2021-11-27 12:55:32 +01:00

37 lines
No EOL
1,008 B
Text

material_basis = {
vertex_format = "luxe.textured"
shaders = {
vertex = { library="materials/shaders" function="vert" }
fragment = { library="materials/shaders" function="frag_transparency_grid" }
}
depth_test = true
depth_write = true
depth_compare = "less_equal"
stencil_test = false
write_mask = { red=true green=true blue=true alpha=true }
blending = true
alpha_blend = "add"
rgb_blend = "add"
src_alpha = "source_alpha"
src_rgb = "source_alpha"
dest_alpha = "one_minus_source_alpha"
dest_rgb = "one_minus_source_alpha"
blend_color = [0 0 0 0]
cull = "none"
winding = "counter_clockwise"
layers = ["default"]
inputs = {
trans_grid.grid_size = {
type = "float2",
value = [20, 20]
},
trans_grid.one_color = {
type = "float4",
value = [0.8, 0.8, 0.8, 1],
},
trans_grid.other_color = {
type = "float4",
value = [1, 1, 1, 1],
}
}
}