Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Soma Custom GLSL Shaders
Xerxes1138 Offline
Junior Member

Posts: 2
Threads: 1
Joined: Apr 2016
Reputation: 0
#1
Soma Custom GLSL Shaders

Hi,

I'm looking for a way to modify or make new custom shaders in GLSL, is it possible at all ?

I've tried to modify the shadersource.hpss but changing a line will crash the engine, but I see that shadercache.xml store all start and end lines for all shaders but it's a nightmare to edit by hand so I'm looking for an easy way Wink.

Thanks.
04-08-2016, 11:44 AM
Find
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#2
RE: Soma Custom GLSL Shaders

I've been looking into this for months. There's no "easy" way to edit the existing shaders, and there's no way to create entirely new shaders at all. What I can say though is that I don't think the ".hpss" file is what you should be looking at. The shader files themselves are in "core/shaders/hpsl", and are all have the ".hpsl" extension. I think "shadersource.hpss" and "shadercache.xml" are intermediary files that the game generates when it detects the shaders need to be recompiled, and if so, you shouldn't need to mess with it.

The shader language they use is a custom one that is based on GLSL, but this blog post is the only place I've been able to find them talking about it at all. It does a good job at breaking the language down for people who want to write their own shaders, but doesn't provide any relevant information for how to actually utilize them in the game. All the existing shaders are used via helper methods in the script, but where those methods and the shaders interact seems to be buried in the engine itself.

If you come across any new breakthroughs, be sure to come back and let us know. Until then, good luck. Smile
04-08-2016, 12:31 PM
Find
Xerxes1138 Offline
Junior Member

Posts: 2
Threads: 1
Joined: Apr 2016
Reputation: 0
#3
RE: Soma Custom GLSL Shaders

"I think "shadersource.hpss" and "shadercache.xml" are intermediary files that the game generates when it detects the shaders need to be recompiled"

Yeah make sense of course Smile.

I don't even know how I could have missed that core folder !

Ok, from what I can see, I can quite easely change their shaders but yeah I need to dig more for a custom one.

Thanks for your reply !

Will keep this thread up to date !
04-08-2016, 12:58 PM
Find




Users browsing this thread: 1 Guest(s)