kivy with simple glsl shows error

43 views
Skip to first unread message

Degenerate Tech

unread,
Nov 15, 2020, 8:10:27 AM11/15/20
to Kivy users support
i have written simple kivy app with glsl but shows error
main.py
basic.glsl

Degenerate Tech

unread,
Nov 15, 2020, 8:13:31 AM11/15/20
to Kivy users support
INFO   ] [Shader      ] Read <basic.glsl>
[ERROR  ] [Shader      ] <vertex> failed to compile (gl:0)
[INFO   ] [Shader      ] vertex shader: <b'0(19) : error C1038: declaration of "frag_color" conflicts with pre
vious declaration at 0(6)\n0(20) : error C1038: declaration of "tex_coord0" conflicts with previous declaratio
n at 0(7)\n0(21) : error C1038: declaration of "vPosition" conflicts with previous declaration at 0(10)\n0(22)
: error C1038: declaration of "vTexCoords0" conflicts with previous declaration at 0(11)\n0(23) : error C1038
: declaration of "modelview_mat" conflicts with previous declaration at 0(14)\n0(24) : error C1038: declaratio
n of "projection_mat" conflicts with previous declaration at 0(15)\n0(25) : error C1038: declaration of "color
" conflicts with previous declaration at 0(16)\n0(26) : error C1038: declaration of "opacity" conflicts with p
revious declaration at 0(17)'>
[ERROR  ] [Shader      ] <fragment> failed to compile (gl:0)
[INFO   ] [Shader      ] fragment shader: <b'0(14) : error C1038: declaration of "frag_color" conflicts with p
revious declaration at 0(6)\n0(15) : error C1038: declaration of "tex_coord0" conflicts with previous declarat
ion at 0(7)\n0(16) : error C1038: declaration of "texture0" conflicts with previous declaration at 0(10)'>
[INFO   ] [Base        ] Start application main loop

Elliot Garbus

unread,
Nov 15, 2020, 2:23:17 PM11/15/20
to kivy-...@googlegroups.com

I don’t know glsl, but there are a number of examples in the kivy examples directory.

In the kivy-examples/demo directory is an interactive shader editor.

In the kivy-examples/shader directory are a few examples.

 

I would think those would be helpful.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/b9808b89-3432-43fe-a462-131860e2420bo%40googlegroups.com.

 

Reply all
Reply to author
Forward
0 new messages