Kode / krafix

GLSL cross-compiler based on glslang and SPIRV-Cross
zlib License
144 stars 29 forks source link

directx build error #39

Closed juakob closed 8 years ago

juakob commented 8 years ago

the shader thats throwing the error is this

`
attribute vec2 vertexPosition;
attribute vec2 texPosition;

uniform mat4 projectionMatrix;
varying vec2 texCoord;
varying vec2 texCoordMask;

void kore() {
    vec4 pos =  projectionMatrix*vec4(vertexPosition.xy,0.0, 1.0) ;
    texCoord = texPosition;

    vec2 v_texCoordMask= vec2((1.0 + pos.x)*0.5,(1.0 + pos.y)*0.5);
    texCoordMask=v_texCoordMask;
    gl_Position=pos;

}`

simpleMask.vert.hlsl(62,34): error X3004: undeclared identifier 'posv' simpleMask.vert.hlsl(62,34): error X3004: undeclared identifier 'posv'

RobDangerous commented 8 years ago

Fixed, but please check if the shader now works as expected.

juakob commented 8 years ago

thank you Robert! its working now