This commit is contained in:
luboslenco
2025-07-12 10:46:34 +02:00
parent 2bcb70cd7a
commit 76a2ba96bd
10 changed files with 6 additions and 49 deletions
-2
View File
@@ -575,10 +575,8 @@ type shader_context_t = {
shader_from_source?: bool; // Build shader at runtime using from_source()
blend_source?: string;
blend_destination?: string;
blend_operation?: string;
alpha_blend_source?: string;
alpha_blend_destination?: string;
alpha_blend_operation?: string;
color_writes_red?: bool[]; // Per target masks
color_writes_green?: bool[];
color_writes_blue?: bool[];
-2
View File
@@ -33,10 +33,8 @@ function node_shader_context_create(material: material_t, props: shader_context_
cull_mode: props.cull_mode,
blend_source: props.blend_source,
blend_destination: props.blend_destination,
blend_operation: props.blend_operation,
alpha_blend_source: props.alpha_blend_source,
alpha_blend_destination: props.alpha_blend_destination,
alpha_blend_operation: props.alpha_blend_operation,
fragment_shader: "",
vertex_shader: "",
vertex_elements: props.vertex_elements != null ? props.vertex_elements : vertex_elements_default,
-2
View File
@@ -204,10 +204,8 @@ function util_clone_shader_contexts(contexts: shader_context_t[]): shader_contex
c.shader_from_source = contexts[i].shader_from_source;
c.blend_source = contexts[i].blend_source;
c.blend_destination = contexts[i].blend_destination;
c.blend_operation = contexts[i].blend_operation;
c.alpha_blend_source = contexts[i].alpha_blend_source;
c.alpha_blend_destination = contexts[i].alpha_blend_destination;
c.alpha_blend_operation = contexts[i].alpha_blend_operation;
c.color_writes_red = util_clone_bool_array(contexts[i].color_writes_red);
c.color_writes_green = util_clone_bool_array(contexts[i].color_writes_green);
c.color_writes_blue = util_clone_bool_array(contexts[i].color_writes_blue);