Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,466 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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