Gamestudio Links
Zorro Links
Newest Posts
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 01/07/26 15:14
Zorro locks DLL
by jcl. 01/07/26 13:33
zorro with ccxt?
by qin. 01/07/26 07:50
The new evaluation system
by jcl. 01/05/26 08:50
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (NorbertSz), 4,046 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Syndrela, HDRSEO, AOUNZA, digitalboy381, agasior
19190 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