Gamestudio Links
Zorro Links
Newest Posts
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 17,576 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
dabolong, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 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