Page 1 of 1

Adding Shader Editor to 2013 SDK

PostPosted: Sun Jul 06, 2014 8:33 am
by Aus_Karlos
So i've decided to dip my hand in some shaders and i thought i'd try out the Shader Editor from Biohazard from the Valve wiki page but im currently stuck on trying to implement it into my Mod.
It states the following..
If you're using the SDK 2013, add the following definition to a $PreprocessorDefinitions variable in your client VPC project: SOURCE_2013. The default projects already have this variable in their $Compiler blocks. Add the new definition at the end, after a semicolon.

https://developer.valvesoftware.com/wik ... stallation

Ok so ive found the $Compile block in the client_base.vpc (Im assuming thats the correct one), what is it telling me i have to add?

Re: Adding Shader Editor to 2013 SDK

PostPosted: Sun Jul 06, 2014 9:44 pm
by Major Banter
Sheeeeiiiiitttttttt, this works for Source 2013? I need to get this working as well.

Re: Adding Shader Editor to 2013 SDK

PostPosted: Sun Jul 06, 2014 10:58 pm
by Vicpop
Find a $PreprocessorDefinitions line inside $Compile, and at the end of the line inside the quotes, put a semicolon and paste SOURCE_2013 after it without a space

Re: Adding Shader Editor to 2013 SDK

PostPosted: Mon Jul 07, 2014 3:55 am
by Aus_Karlos
I can't believe that was it. I had it a different way by adding a new $PreprocessorDefinitions line with SOURCE_2013 and all it did was crash the game if i tried loading the game with -shaderedit.
But adding it to the first $PreprocessorDefinitions line at the end makes it functional.
Thanks Vicpop