Author Topic: GLSL Shader how to use  (Read 3024 times)

0 Members and 1 Guest are viewing this topic.

GLSL Shader how to use
hi

i read in an thread that there is GLSL shader support in 3.6.10
how can i use the support ? I mean how can i use glsl shader in game if i write shaders
do i have to write some entry in tbl or what ?
i read in wiki for devs but i cant find anything only one thread and thats it.
i think some other people who dont read every thread dont know this feature if it is real.
can i create partikles with shaders like fire or nebulas so on ?

thx much for information

 

Offline Talon 1024

  • 29
  • How do you turn this on?
    • Mods, Games, and Stuff
Re: GLSL Shader how to use
I believe taylor said a while back that shaders can be implemented into the game by placing them in the data/effects/ directory.  I'm not sure if it really does work, since I tried putting blackhole's motion blur shader in that folder and it made no difference.

(Even I'm wondering how to implement shaders :nervous: )
To understand religion, you need to understand morality first. | WCSaga website | WCSaga Forum | 158th website | 158th forum | Project Leader: WC: Hostile Frontier | WCHF Thread at CIC | Wing Blender | Twist of Fate | Multipart turrets on angled surfaces, tutorial included. | My Google Drive stuff | To convert speeds from WC to WCS, multiply both the cruise speed and the Afterburner speed by 0.15625 (5/32)

FS2 Mods I'm waiting on: Inferno 10th Anniversary
Current Project: Contestant Android app, Learn4Life iOS app, Blender Commander (importer).
The FreeSpace Font Foundry is back in action!

  

Offline DaBrain

  • Screensniper
  • Moderator
  • 212
    • Shadows of Lylat board
Re: GLSL Shader how to use
I think the names for the shader are hardcoded. Well, actually they have to be, because we don't have a material system atm.
So the engine looks at the included maps for a model (i.e. x, x-shine, x-glow) and uses the 'diffuse, specular, env, glow' shader.

You can open this file to get the file names:
http://icculus.org/~taylor/fso/misc/sdr1119.rar

Keep in mind that you will probably have to replace all shaders.

If you replace the 'diff, spec, normal' shader and a player disables normal mapping, the game will use another shader(!)
--------------------------------------------------
SoL is looking for a sound effect artist
Please PM me in case you want to apply
---------------------------------
Shadows of Lylat - A Freespace 2 total conversion
(hosted by Game-Warden)
----------------------------------