Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 740 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 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 | chip programmers | 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