• 2

    For future reference:
    I fixed it by moving the two shaders given on the tutorial page to the Empty/Kha/Sources/Shaders folder and naming them 'simple.vert.glsl' and 'simple.frag.glsl' respectively.


    I was following part 2 of the Kha 3D beginner tutorial (here) and I downloaded the source code to run it. The following errors were thrown:
    C:[redacted]\Empty>node Kha/make html5
    Creating Kha project.
    Compiling shader 1 of 8 (painter-colored.vert.glsl).
    Compiling shader 2 of 8 (painter-colored.frag.glsl).
    Compiling shader 3 of 8 (painter-image.vert.glsl).
    Compiling shader 4 of 8 (painter-image.frag.glsl).
    Compiling shader 5 of 8 (painter-text.vert.glsl).
    Compiling shader 6 of 8 (painter-video.frag.glsl).
    Compiling shader 7 of 8 (painter-text.frag.glsl).
    Compiling shader 8 of 8 (painter-video.vert.glsl).
    Compiling code.
    ..\Sources/Empty.hx:47: characters 28-47 : Class<kha.Shaders> has no field simple_frag
    ..\Sources/Empty.hx:48: characters 26-45 : Class<kha.Shaders> has no field simple_vert

    Haxe compiler error.*

    I was using the source code directly from the tutorial yet it threw this error. I am using Kha from Git. My Shaders.hx file is identical to the one here. What am I doing wrong?

    Any help would be greatly appreciated.

    posted in Kode read more