nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   Shader problem 180.44 (http://www.nvnews.net/vbulletin/showthread.php?t=131298)

ignus 04-08-09 09:48 PM

Shader problem 180.44
 
I just started with this thing of shaders...

I'm using xubuntu 8.10 (2.6.27-11-generic) 8600M GT. When trying to compile some opengl code that I had.. I got errors, I checked glxinfo and somehow my 3d rendering was disabled. I looked in the nvidia driver page and I downloaded the last one. My opengl application was running correctly.

Then I started programming the shader and got this:

0(6) : error C1115: unable to find compatible overloaded function "normalize(error)"
0(7) : error C1115: unable to find compatible overloaded function "normalize(error)"
0(8) : error C1115: unable to find compatible overloaded function "reflect(vec3, error)"

And so on...

I'm very new in this subject.. so any help would be appreciated. I just need to know why this is not working (I read somewhere that this has to do with the pixel shader.. that I should use the version 2, but I've no idea how to do that)... So thanks!

ignus 04-09-09 09:47 AM

Re: Shader problem 180.44
 
Oh.. never mind, I was missing some variable initialization =/


All times are GMT -5. The time now is 03:04 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.