Shader fixes
This commit is contained in:
@@ -280,7 +280,7 @@ declare function gpu_disable_scissor(): void;
|
||||
declare function _gpu_begin(render_target: gpu_texture_t, additional: gpu_texture_t[] = null, depth_buffer: gpu_texture_t = null, flags: i32 = clear_flag_t.NONE, color: i32 = 0, depth: f32 = 0.0): void;
|
||||
declare function gpu_end(): void;
|
||||
declare function gpu_present(): void;
|
||||
declare function iron_file_save_bytes(path: string, bytes: buffer_t, length?: i32): void;
|
||||
declare function iron_file_save_bytes(path: string, bytes: buffer_t, length: i32 = 0): void;
|
||||
declare function iron_sys_command(cmd: string): i32;
|
||||
declare function iron_internal_save_path(): string;
|
||||
declare function iron_get_arg_count(): i32;
|
||||
@@ -669,6 +669,7 @@ enum compare_mode_t {
|
||||
ALWAYS,
|
||||
NEVER,
|
||||
LESS,
|
||||
EQUAL,
|
||||
}
|
||||
|
||||
enum cull_mode_t {
|
||||
|
||||
@@ -289,6 +289,9 @@ function shader_context_get_compare_mode(s: string): compare_mode_t {
|
||||
if (s == "never") {
|
||||
return compare_mode_t.NEVER;
|
||||
}
|
||||
if (s == "equal") {
|
||||
return compare_mode_t.EQUAL;
|
||||
}
|
||||
return compare_mode_t.LESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user