Would you be able to convert the shader posted by commiebits for me. I’d like to try it on my Androd Box and keeps failing for me
C:\Users\User\AppData\Local\Programs\Python\Python35\python.exe “C:\Script\cg2glsl.py” C:\Shaders2\Test.cg C:\Shaders\Test.gls
I keep getting a bunch of errors.
C:\Shaders2\Test.cg(1) : error C0000: syntax error, unexpected ‘<’ at token “<”
C:\Shaders2\Test.cg(5) : error C0130: invalid character literal
C:\Shaders2\Test.cg(9) : error C0000: syntax error, unexpected ‘/’, expecting "
:" at token “/”
C:\Shaders2\Test.cg(11) : error C0000: syntax error, unexpected integer constan
, expecting “::” at token “<int-const>”
C:\Shaders2\Test.cg(16) : error C0000: syntax error, unexpected ‘.’, expecting
::" at token “.”
C:\Shaders2\Test.cg(26) : error C0104: Unknown pre-processor directive #version
C:\Shaders2\Test.cg(31) : error C5060: out can’t be used with non-varying vTexC
ord
C:\Shaders2\Test.cg(35) : error C5059: stdlib “gl_” variables are not accessibl
C:\Shaders2\Test.cg(38) : error C0000: syntax error, unexpected ‘]’ at token “]
C:\Shaders2\Test.cg(41) : error C0104: Unknown pre-processor directive #version
C:\Shaders2\Test.cg(62) : error C1059: non constant expression in initializatio
C:\Shaders2\Test.cg(133) : error C0000: syntax error, unexpected type identifie
, expecting ‘{’ at token “vec2”
C:\Shaders2\Test.cg(134) : error C0000: syntax error, unexpected type identifie
, expecting ‘{’ at token “vec2”
C:\Shaders2\Test.cg(135) : error C5060: out can’t be used with non-varying frag
entColour
C:\Shaders2\Test.cg(137) : error C1013: function “main” is already defined at C
\Shaders2\Test.cg(33)
C:\Shaders2\Test.cg(271) : error C0000: syntax error, unexpected ‘]’ at token "
"
Vertex compilation failed …
C:\Users\User>C:\Users\User\AppData\Local\Programs\Python\Python35\python.exe "
:\Script\cg2glsl.py” C:\Shaders2\Test.cg C:\Shaders\Test.gls
C:\Shaders2\Test.cg(1) : error C0000: syntax error, unexpected ‘<’ at token “<”
C:\Shaders2\Test.cg(5) : error C0130: invalid character literal
C:\Shaders2\Test.cg(9) : error C0000: syntax error, unexpected ‘/’, expecting "
:" at token “/”
C:\Shaders2\Test.cg(11) : error C0000: syntax error, unexpected integer constan
, expecting “::” at token “<int-const>”
C:\Shaders2\Test.cg(16) : error C0000: syntax error, unexpected ‘.’, expecting
::" at token “.”
C:\Shaders2\Test.cg(26) : error C0104: Unknown pre-processor directive #version
C:\Shaders2\Test.cg(31) : error C5060: out can’t be used with non-varying vTexC
ord
C:\Shaders2\Test.cg(35) : error C5059: stdlib “gl_” variables are not accessibl
C:\Shaders2\Test.cg(38) : error C0000: syntax error, unexpected ‘]’ at token "]
C:\Shaders2\Test.cg(41) : error C0104: Unknown pre-processor directive #version
C:\Shaders2\Test.cg(62) : error C1059: non constant expression in initializatio
C:\Shaders2\Test.cg(133) : error C0000: syntax error, unexpected type identifie
, expecting ‘{’ at token “vec2”
C:\Shaders2\Test.cg(134) : error C0000: syntax error, unexpected type identifie
, expecting ‘{’ at token “vec2”
C:\Shaders2\Test.cg(135) : error C5060: out can’t be used with non-varying frag
entColour
C:\Shaders2\Test.cg(137) : error C1013: function “main” is already defined at C
\Shaders2\Test.cg(33)
C:\Shaders2\Test.cg(271) : error C0000: syntax error, unexpected ‘]’ at token "
"
Vertex compilation failed …
C:\Users\User>