File tree Expand file tree Collapse file tree 6 files changed +7
-13
lines changed Expand file tree Collapse file tree 6 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ import time
23
23
import gg.m4
24
24
25
25
// GLSL Include and functions
26
- #flag -I @VMODROOT/.
27
- #include "cube_glsl.h" # Should be generated with `v shader .` (see the instructions at the top of this file)
26
+ #include "@VMODROOT/cube_glsl.h" # It should be generated with `v shader .` (see the instructions at the top of this file)
28
27
29
28
fn C.cube_shader_desc (gfx.Backend) & gfx.ShaderDesc
30
29
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ import time
24
24
25
25
// GLSL Include and functions
26
26
27
- #flag -I @VMODROOT/.
28
- #include "rt_glsl.h" # Should be generated with `v shader .` (see the instructions at the top of this file)
27
+ #include "@VMODROOT/rt_glsl.h" # It should be generated with `v shader .` (see the instructions at the top of this file)
29
28
30
29
fn C.rt_shader_desc (gfx.Backend) & gfx.ShaderDesc
31
30
Original file line number Diff line number Diff line change @@ -23,9 +23,8 @@ import sokol.sgl
23
23
import time
24
24
25
25
// GLSL Include and functions
26
- #flag -I @VMODROOT/.
27
- #include "rt_glsl_march.h" # Should be generated with `v shader .` (see the instructions at the top of this file)
28
- #include "rt_glsl_puppy.h" # Should be generated with `v shader .` (see the instructions at the top of this file)
26
+ #include "@VMODROOT/rt_glsl_march.h" # It should be generated with `v shader .` (see the instructions at the top of this file)
27
+ #include "@VMODROOT/rt_glsl_puppy.h" # It should be generated with `v shader .` (see the instructions at the top of this file)
29
28
30
29
fn C.rt_march_shader_desc (gfx.Backend) & gfx.ShaderDesc
31
30
fn C.rt_puppy_shader_desc (gfx.Backend) & gfx.ShaderDesc
Original file line number Diff line number Diff line change 55
55
/* *****************************************************************************
56
56
* GLSL Include and functions
57
57
******************************************************************************/
58
- #flag -I @VMODROOT/.
59
- #include "rt_glsl_instancing.h" # Should be generated with `v shader .` (see the instructions at the top of this file)
58
+ #include "@VMODROOT/rt_glsl_instancing.h" # It should be generated with `v shader .` (see the instructions at the top of this file)
60
59
61
60
fn C.instancing_shader_desc (gfx.Backend) & gfx.ShaderDesc
62
61
Original file line number Diff line number Diff line change @@ -32,8 +32,7 @@ import obj
32
32
33
33
// GLSL Include and functions
34
34
35
- #flag -I @VMODROOT/.
36
- #include "gouraud.h" # Should be generated with `v shader .` (see the instructions at the top of this file)
35
+ #include "@VMODROOT/gouraud.h" # It should be generated with `v shader .` (see the instructions at the top of this file)
37
36
38
37
fn C.gouraud_shader_desc (gfx.Backend) & gfx.ShaderDesc
39
38
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ import sokol.gfx
9
9
// Use `v shader` or `sokol-shdc` to generate the necessary `.h` file
10
10
// Using `v shader -v .` in this directory will show some additional
11
11
// info - and what you should include to make things work.
12
- #flag -I @VMODROOT/.
13
- #include "simple_shader.h"
12
+ #include "@VMODROOT/simple_shader.h" # # It should be generated with `v shader .`
14
13
15
14
// simple_shader_desc is a C function declaration defined by
16
15
// the `@program` entry in the `simple_shader.glsl` shader file.
You can’t perform that action at this time.
0 commit comments