Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 05 Sep 2008
Offline Last Active Dec 17 2015 12:12 PM

#5252600 Corrupted Vertex Buffer

Posted by on 16 September 2015 - 10:57 PM

mhagain, thanks for the solution!  That fixed it!  I didn't realized that glVertexAttribPointer required the buffer to be bound before use.  Thanks for the heads up!

#5249299 Procedurally Generating Noise in a Shader

Posted by on 28 August 2015 - 01:46 AM

Tonight I wrote a tutorial explaining how to procedurally generate noise in a shader if you need to.


Take a look here.



I hope it helps someone!  =)




#5236258 Picking a Random Uniformly Distributed Point in a Circle

Posted by on 22 June 2015 - 10:56 PM

A short article tI wrote that attempts to give a little insight into how this is done mathematically.





#5233838 Roughness in a Reflection

Posted by on 09 June 2015 - 11:27 AM

So if I understand correctly, from a shader perspective, we sample a cubemap just like we would as normal.  The only difference is that the cubemap is been blurred offline. Perhaps we have multiple versions of the blur per mip map.  

#5230358 Procedural Lightning

Posted by on 22 May 2015 - 12:03 AM

Hey renman29!  That is very kind of you to say and I am glad you liked it!


I actually just made a few small adjustments to make more of a dynamic looking energy field.  It uses 2 passes of fractional brownian motion.





#5230098 Procedural Lightning

Posted by on 20 May 2015 - 01:54 PM

Hey guys!  Here is a shader I wrote that demonstrates a simple way to do procedural lightning.




You will need a WebGL enabled browser to view the demo.




#5229374 Dot Product 101

Posted by on 16 May 2015 - 05:36 PM

Hey guys!


I wrote an article on the dot product.  Hopefully it will help someone out.




#4826097 Build targets

Posted by on 21 June 2011 - 12:47 PM

In Visual Studio, when I set my build target to "DEBUG", I can use the macro

#ifdef _DEBUG

How can I do this for custom made build targets. For example lets say I have a build target called

I can't just do

#ifdef _TEST

Any ideas? thanks!