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
2 registered members (AndrewAMD, TipmyPip), 13,353 guests, and 5 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
Is this a pixel or vertex shader ? #27882
05/24/04 20:36
05/24/04 20:36
Joined: Jul 2003
Posts: 1,563
B
blaaaaa Offline OP
Expert
blaaaaa  Offline OP
Expert
B

Joined: Jul 2003
Posts: 1,563
Ive got a material code that applies mipmapping to my terrains. but i dont know if this is a pixel or vertex shader. here is the code :
Code:
 
function mtl_terraintex_init(){

// Adjust the texture transform to do some tiling of the textures
mtl.matrix11 = float(50); // default u scale
mtl.matrix22 = float(50); // default v scale
}

material mat_terrain_detail
{
event = mtl_terraintex_init;

effect = "

matrix matMtl;

texture entSkin1;

technique t0
{
pass p0
{
Texture[0] = <entSkin1>;

TextureTransformFlags[0] = Count2;
TextureTransform[0] = <matMtl>;
TexCoordIndex[0] = 1;

}
}";
}

action DetailTextures
{
my.transparent=off;
my.material = mat_terrain_detail;
}




i have to know this because my game should also run on older gfx cards

Re: Is this a pixel or vertex shader ? [Re: blaaaaa] #27883
05/24/04 20:58
05/24/04 20:58
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
this isnt a pixel nor a vertex shader. it seems to me like a fixedfunction . if you dont find definitions like VertexShader= or PixelShader= ... then it isnt one

Re: Is this a pixel or vertex shader ? [Re: blaaaaa] #27884
05/24/04 21:00
05/24/04 21:00
Joined: Mar 2004
Posts: 102
T
Taros Offline
Member
Taros  Offline
Member
T

Joined: Mar 2004
Posts: 102
It's fixed function effect(isn't a shader) so don't worry, your game should run on all cards that support T&L.


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