• Welcome to Dark Bit Factory & Gravity.
 

DirectX9 - Pixelshader *.ps and *.fx files...

Started by va!n, June 10, 2007

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

va!n

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:

taj

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: