Author Topic: DirectX9 - Pixelshader *.ps and *.fx files...  (Read 2676 times)

0 Members and 1 Guest are viewing this topic.

Offline va!n

  • Pentium
  • *****
  • Posts: 1435
  • Karma: 109
    • View Profile
    • http://www.secretly.de
i know here are some guys knowing about pixelshaders coding... maybe some of you noticed my posted source for the oldskool xor textured tunnelfx... a good friend tried to code the same fx using pixelshaders.... we just changed to textures to 256x256 instead of screensize (else there is a drawing problem)

The FX works fine in the MS fx editor.... now we are a bit shocked about the filesize for the effect... maybe someone can help us, whats wrong and if there is any way to optimize the compiled fx / shader files...

- Tunnel fx file (text based) == 1.927 bytes
- Tunnel fx file (compiled) == 4.612 bytes O.O
- Tunnel ps file (compiled) == 1.964 bytes O.O

Is it normal, that compiled DX9 shaderfiles are bigger as the plain text based file?
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Offline taj

  • Bytes hurt
  • DBF Aficionado
  • ******
  • Posts: 4810
  • Karma: 189
  • Scene there, done that.
    • View Profile
Re: DirectX9 - Pixelshader *.ps and *.fx files...
« Reply #1 on: June 16, 2007 »
I have no idea (only use DX maths libs but glsl for shaders). If you find out post a summary I'd like to know.
Challenge Trophies Won: