Better Shadows

Joined
Oct 13, 2010
Messages
108
Ok, so I was looking through the vertex shaders and I'm pretty sure I found the one that controls shadows (I could be wrong though.)

shadowvolume.vsh
Code:
//asm
TARGET

#include "vertex_program/modules/registers.inc"
dcl_position0 vPosition

m4x4 oPos, vPosition, cObjectWorldCameraProjectionMatrix
Now, I don't know HLSL (Yet, anyways >_>) but something's telling me some part of this could be improved. Anyone got any ideas?
 

Tonberry

Inactive Staff
Joined
Aug 30, 2010
Messages
372
Shadows can be improved yeah, but its a touchy area. They are relatively bugged to begin with so its difficult to make improvements without making them worse. A few people have tried, but the improvement has always been so subtle its not worth it in the end.
 
Joined
Oct 13, 2010
Messages
108
Tonberry said:
Shadows can be improved yeah, but its a touchy area. They are relatively bugged to begin with so its difficult to make improvements without making them worse. A few people have tried, but the improvement has always been so subtle its not worth it in the end.
I would give it a try, but I can't seem to make myself actually sit down and learn HLSL >_>

Concerning those previous improvements, what did they do? Performance increase or quality increase?
 

Uli

Moderator
Staff member
Moderator
Joined
Aug 30, 2010
Messages
208
MechWarrior001 said:
Tonberry said:
Shadows can be improved yeah, but its a touchy area. They are relatively bugged to begin with so its difficult to make improvements without making them worse. A few people have tried, but the improvement has always been so subtle its not worth it in the end.
I would give it a try, but I can't seem to make myself actually sit down and learn HLSL >_>

Concerning those previous improvements, what did they do? Performance increase or quality increase?
http://www.fairyengine.com/articles/hlsl2sided.htm

Can be quite helpful. Btw it explains what m4x4 instruction does and I'm unsure how you could improve on it.

m4x4 is a "complex" instruction which theoretically takes 4 cycles, that is to say the same time as the mul and 3 mad above
 

Tonberry

Inactive Staff
Joined
Aug 30, 2010
Messages
372
I'm all for people giving it a go. Perhaps our community will be more successful than those who tried over at modsource. :p

P.S - Uli, that link might be worth posting as a guide, interesting stuff.
 
Top Bottom