Gamestudio Links
Zorro Links
Newest Posts
A3 projects
by rayp. 09/27/26 20:38
Parent/child object
by rayp. 09/27/26 14:43
3D Game-Studio on Android!!!
by ratz. 09/26/26 21:25
Bug in train mode, or it seem to me
by mistery. 09/24/26 17:34
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 09/22/26 12:21
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 3,327 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
KelleyAbbey, Yopachi, Knull, Opus, Jubilee
19242 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