Problem with in-out variables Hello, I've been texturing some objects in a little framework I've made, but I have run into a very strange problem. I have used this a lot of times in my shaders, but this time the project throws an exception when accessing the "in" variable inside de pixel shader. I put some screenshoots: Vertex Shader: As you can see, I have the out variable called texCoord Pixel Shader: Here, I have the in variable. If I put another vec2 (0.2, 0.3 for example) it works fine and gets the color of that point in the texture, but if I use texCoord, the program throws an exception that says I am accessing a wrong memory direction. I have compared this with all the other shaders ive done and I just think it is a bug because this makes no sense at all. Thank you very much! https://ift.tt/eA8V8J
Hello, I've been texturing some objects in a little framework I've made, but I have run into a very strange problem. I have used this a lot of times in my shaders, but this time the project throws an exception when accessing the "in" variable inside de pixel shader. I put some screenshoots: Vertex Shader: As you can see, I have the out variable called texCoord Pixel Shader: Here, I have the in variable. If I put another vec2 (0.2, 0.3 for example) it works fine and gets the color of that point in the texture, but if I use texCoord, the program throws an exception that says I am accessing a wrong memory direction. I have compared this with all the other shaders ive done and I just think it is a bug because this makes no sense at all. Thank you very much!
from GameDev.net http://bit.ly/2KIyJTn
from GameDev.net http://bit.ly/2KIyJTn
ليست هناك تعليقات