Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 662 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
HSLS and changing Tex.y #54182
09/04/05 14:23
09/04/05 14:23
Joined: May 2003
Posts: 609
Rattenfängerstadt
Rigoletto Offline OP
Developer
Rigoletto  Offline OP
Developer

Joined: May 2003
Posts: 609
Rattenfängerstadt
Hi,

i experiment with HSLS and got an error when try to change Tex-Coordinates:

float4 MyShader( MYSHADER_PS_IN In) : COLOR
{
float4 color;
float4 shadow;

In.Tex0.y = In.Tex0.y * 0.5; // <- MAKES ERROR

color = tex2D( sblock, In.Tex0.xy);
shadow = tex2D( sshadow, In.Tex1.xy);

color = color * shadow;

return color;
}

Is that not possible?

Re: HSLS and changing Tex.y [Re: Rigoletto] #54183
09/04/05 15:05
09/04/05 15:05
Joined: May 2003
Posts: 609
Rattenfängerstadt
Rigoletto Offline OP
Developer
Rigoletto  Offline OP
Developer

Joined: May 2003
Posts: 609
Rattenfängerstadt
Oh,

it needs PS 1.4 minimum.

Re: HSLS and changing Tex.y [Re: Rigoletto] #54184
09/04/05 16:06
09/04/05 16:06
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
that's becasue you are changing the tex coords in the pixel shader.. only 1.4 and above can do this in this way.. if you want lower shader versions, do this in the vertex shader.


Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1