stage3d - Pass position to fragment shader in AGAL -


i trying shading agal. have set full screen quad drawn shader programs, ran unexplainable.

i have these vertices

var vertices:vector.<number> = vector.<number>([      - 1, - 1, 0, - 1, - 1, 0,     + 1, - 1, 0, + 1, - 1, 0,     - 1, + 1, 0, - 1, + 1, 0,     + 1, + 1, 0, + 1, + 1, 0  ]); 

this pair of program works

vertexshaderassembler.assemble(context3dprogramtype.vertex,      "mov op, va0\n" +     "mov v0, va1" );  ...  fragmentshaderassembler.assemble(context3dprogramtype.fragment,      "mov oc, v0" ); 

however not

vertexshaderassembler.assemble(context3dprogramtype.vertex,      "mov op, va0\n" +     "mov v0, va0" );  ...  fragmentshaderassembler.assemble(context3dprogramtype.fragment,      "mov oc, v0" ); 

any clue on why have pass same values through va1 , why not work when vertices have 3 coordiante?

there validation error or wrong indices order, if don't see result on screen. detect issue please set enableerrorchecking property true in context3d object. stage3d start throw validation errors. additional questions stage3d can join our stage3d group on facebook , answers faster.


Comments

Popular posts from this blog

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -