gtkglarea r109 - in trunk: . examples
- From: samh svn gnome org
- To: svn-commits-list gnome org
- Subject: gtkglarea r109 - in trunk: . examples
- Date: Mon, 22 Sep 2008 13:21:49 +0000 (UTC)
Author: samh
Date: Mon Sep 22 13:21:49 2008
New Revision: 109
URL: http://svn.gnome.org/viewvc/gtkglarea?rev=109&view=rev
Log:
* examples/shaders.c: fix shader syntax by replacing (float)xxx with
float(xxx).
Modified:
trunk/ChangeLog
trunk/examples/shaders.c
Modified: trunk/examples/shaders.c
==============================================================================
--- trunk/examples/shaders.c (original)
+++ trunk/examples/shaders.c Mon Sep 22 13:21:49 2008
@@ -142,8 +142,8 @@
"void main()"
"{"
" gl_TexCoord[0] = gl_MultiTexCoord0;"
- " float r = (float)(gl_Vertex.x + 100) / 100.0;"
- " float g = (float)(gl_Vertex.y + 100) / 100.0;"
+ " float r = float(gl_Vertex.x + 100) / 100.0;"
+ " float g = float(gl_Vertex.y + 100) / 100.0;"
" color = vec4(1 - r, 1 - g, 0, 1);"
" gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex ;"
"}";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]