diff --git a/examples/sokol/02_cubes_glsl/cube_glsl.v b/examples/sokol/02_cubes_glsl/cube_glsl.v index ffc3138405..6796821ede 100644 --- a/examples/sokol/02_cubes_glsl/cube_glsl.v +++ b/examples/sokol/02_cubes_glsl/cube_glsl.v @@ -23,8 +23,7 @@ import time import gg.m4 // GLSL Include and functions -#flag -I @VMODROOT/. -#include "cube_glsl.h" # Should be generated with `v shader .` (see the instructions at the top of this file) +#include "@VMODROOT/cube_glsl.h" # It should be generated with `v shader .` (see the instructions at the top of this file) fn C.cube_shader_desc(gfx.Backend) &gfx.ShaderDesc diff --git a/examples/sokol/03_march_tracing_glsl/rt_glsl.v b/examples/sokol/03_march_tracing_glsl/rt_glsl.v index 7d578db22c..51b900ad23 100644 --- a/examples/sokol/03_march_tracing_glsl/rt_glsl.v +++ b/examples/sokol/03_march_tracing_glsl/rt_glsl.v @@ -24,8 +24,7 @@ import time // GLSL Include and functions -#flag -I @VMODROOT/. -#include "rt_glsl.h" # Should be generated with `v shader .` (see the instructions at the top of this file) +#include "@VMODROOT/rt_glsl.h" # It should be generated with `v shader .` (see the instructions at the top of this file) fn C.rt_shader_desc(gfx.Backend) &gfx.ShaderDesc diff --git a/examples/sokol/04_multi_shader_glsl/rt_glsl.v b/examples/sokol/04_multi_shader_glsl/rt_glsl.v index 79539238db..cebb7577c5 100644 --- a/examples/sokol/04_multi_shader_glsl/rt_glsl.v +++ b/examples/sokol/04_multi_shader_glsl/rt_glsl.v @@ -23,9 +23,8 @@ import sokol.sgl import time // GLSL Include and functions -#flag -I @VMODROOT/. -#include "rt_glsl_march.h" # Should be generated with `v shader .` (see the instructions at the top of this file) -#include "rt_glsl_puppy.h" # Should be generated with `v shader .` (see the instructions at the top of this file) +#include "@VMODROOT/rt_glsl_march.h" # It should be generated with `v shader .` (see the instructions at the top of this file) +#include "@VMODROOT/rt_glsl_puppy.h" # It should be generated with `v shader .` (see the instructions at the top of this file) fn C.rt_march_shader_desc(gfx.Backend) &gfx.ShaderDesc fn C.rt_puppy_shader_desc(gfx.Backend) &gfx.ShaderDesc diff --git a/examples/sokol/05_instancing_glsl/rt_glsl.v b/examples/sokol/05_instancing_glsl/rt_glsl.v index 602d76eb45..36c1e74d50 100644 --- a/examples/sokol/05_instancing_glsl/rt_glsl.v +++ b/examples/sokol/05_instancing_glsl/rt_glsl.v @@ -55,8 +55,7 @@ mut: /****************************************************************************** * GLSL Include and functions ******************************************************************************/ -#flag -I @VMODROOT/. -#include "rt_glsl_instancing.h" # Should be generated with `v shader .` (see the instructions at the top of this file) +#include "@VMODROOT/rt_glsl_instancing.h" # It should be generated with `v shader .` (see the instructions at the top of this file) fn C.instancing_shader_desc(gfx.Backend) &gfx.ShaderDesc diff --git a/examples/sokol/06_obj_viewer/show_obj.v b/examples/sokol/06_obj_viewer/show_obj.v index d4e99b2df2..aa3fd6c745 100644 --- a/examples/sokol/06_obj_viewer/show_obj.v +++ b/examples/sokol/06_obj_viewer/show_obj.v @@ -32,8 +32,7 @@ import obj // GLSL Include and functions -#flag -I @VMODROOT/. -#include "gouraud.h" # Should be generated with `v shader .` (see the instructions at the top of this file) +#include "@VMODROOT/gouraud.h" # It should be generated with `v shader .` (see the instructions at the top of this file) fn C.gouraud_shader_desc(gfx.Backend) &gfx.ShaderDesc diff --git a/examples/sokol/simple_shader_glsl/simple_shader.v b/examples/sokol/simple_shader_glsl/simple_shader.v index 51279081fa..6b1773bcdb 100644 --- a/examples/sokol/simple_shader_glsl/simple_shader.v +++ b/examples/sokol/simple_shader_glsl/simple_shader.v @@ -9,8 +9,7 @@ import sokol.gfx // Use `v shader` or `sokol-shdc` to generate the necessary `.h` file // Using `v shader -v .` in this directory will show some additional // info - and what you should include to make things work. -#flag -I @VMODROOT/. -#include "simple_shader.h" +#include "@VMODROOT/simple_shader.h" # # It should be generated with `v shader .` // simple_shader_desc is a C function declaration defined by // the `@program` entry in the `simple_shader.glsl` shader file.