Jump to content

  • Log In with Google      Sign In   
  • Create Account

Tocs' Blog



Shader Templates - Simple But Useful

Posted by Tocs, 25 February 2014 · 1,974 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,190 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 · 705 views
C++
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 · 651 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...





October 2014 »

S M T W T F S
   1234
567891011
12131415161718
192021 22 232425
262728293031 

Recent Comments

PARTNERS