Jump to content

  • Log In with Google      Sign In   
  • Create Account

Tocs' Blog

Shader Templates - Simple But Useful

Posted by Tocs, 25 February 2014 - - - - - - · 2,520 views

For the longest time I've struggled with how I wanted to handle materials in my graphics framework. When searching around for existing solutions I found basically two things.

A: Shaders with strict inputs:
A single shader that had specific inputs that were textures, floats, etc etc.

B: Node based shaders:
Crazy flexible graphical editors for materials...

Single Pass Order Independent Transparency

Posted by Tocs, 06 January 2014 - - - - - - · 1,648 views
transparency, OIT, OpenGL
Over the past couple of days I wanted to try out order independent transparency. AMD showed it off in their "Mecha Demo" . And with a little help from here I was able to get it functioning in my own graphics framework.

In Cyril's blog he uses some bindless buffer extensions from NVidia. In my implementation I use Image Load Store . (Cyril also had an im...

Two things I wish C++ had.

Posted by Tocs, 28 August 2013 - - - - - - · 973 views
I thought I'd share some thoughts on two features I wished C++ had, tell me what you think.

Identifier Template Parameters

I'd really like to be able to take an identifier token as a template parameter, similar to a macro but it could only accept a single identifier.

You could use it somewhat like this.template <class T, identifier variablename...

Lost in Asset Management

Posted by Tocs, 22 July 2013 - - - - - - · 983 views
C++, assets for sale
So I've been contemplating a good way to manage assets used by my game and so far I've been losing the mental battle.

My current idea is a custom smart pointer much like shared_ptr, in addition to reference counting it keeps track of which files have been loaded and simply returns a reference if its already loaded.

This makes loading files worry free as...

July 2016 »

171819202122 23

Recent Comments