Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Shadoh

Member Since 13 Nov 2012
Offline Last Active Nov 25 2012 11:00 PM

Posts I've Made

In Topic: values not transfering from vertex shader

16 November 2012 - 04:35 PM

Found the solution! I was unaware that the Geometry shader actually takes input from the Vertex shader (I thought it was the other way around). This got answered on the OpenGL forums over here.

Thanks to all who answered.

In Topic: values not transfering from vertex shader

14 November 2012 - 12:54 AM

Id start commenting out code till I narrowed down the issue.
First change your fragment shader to the following...

[source lang="java"]void main(void){ outputF = ColorOut;}[/source]

Is the colour shown? If so then it's either your texture or the "Alpha" parameter not being initialise correctly.


Still comes out blank, infact the current setup doesn't work properly unless I manually set the locations. The weird thing is, it maps the texture properly. So the texture comes out fine, but it's black (obviously because of the coloring). I'll update the original post with the semi-working version. So it show's the texture, but not the color.

This screenshot below shows what it looks like when only using the ColorOut value with OutputF. Note: the black squares should at-least be white.

Posted Image

PARTNERS