CabinGame/Luxe/shaders/pixel_text_ui.material_basis.lx_uuu

130 lines
No EOL
3 KiB
Text

material_basis = {
vertex_format = "luxe.ui_font"
shaders = {
vertex = { library="shaders/pixel_text_ui" function="vert" }
fragment = { library="shaders/pixel_text_ui" function="frag" }
}
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 = {
ui.tex_mask = {
type = "image"
value = {
type = "image2D"
sampler_state = "nearest_clamp"
}
}
font.page0 = {
type = "image"
value = {
type = "image2D"
sampler_state = "linear_repeat"
}
}
font.page1 = {
type = "image"
value = {
type = "image2D"
sampler_state = "linear_repeat"
}
}
font.page2 = {
type = "image"
value = {
type = "image2D"
sampler_state = "linear_repeat"
}
}
font.page3 = {
type = "image"
value = {
type = "image2D"
sampler_state = "linear_repeat"
}
}
font.page4 = {
type = "image"
value = {
type = "image2D"
sampler_state = "linear_repeat"
}
}
font.page5 = {
type = "image"
value = {
type = "image2D"
sampler_state = "linear_repeat"
}
}
font.page6 = {
type = "image"
value = {
type = "image2D"
sampler_state = "linear_repeat"
}
}
font.page7 = {
type = "image"
value = {
type = "image2D"
sampler_state = "linear_repeat"
}
}
// font.pages = {
// type = "image"
// count = 8
// value = [
// {
// type = "image2D"
// sampler_state = "linear_repeat"
// }
// {
// type = "image2D"
// sampler_state = "linear_repeat"
// }
// {
// type = "image2D"
// sampler_state = "linear_repeat"
// }
// {
// type = "image2D"
// sampler_state = "linear_repeat"
// }
// {
// type = "image2D"
// sampler_state = "linear_repeat"
// }
// {
// type = "image2D"
// sampler_state = "linear_repeat"
// }
// {
// type = "image2D"
// sampler_state = "linear_repeat"
// }
// {
// type = "image2D"
// sampler_state = "linear_repeat"
// }
// ]
// }
ui.canvas_size = {
type = "float2"
value = [1 1]
}
}
}