dshader_t

Information about the engine technology is revealed and discussed here
Post Reply
chacham15
Private
Posts: 7
Joined: Sun Apr 20, 2008 8:00 pm

dshader_t

Post by chacham15 »

Based on looking at hexdumps dsurface_t should be of the following form:

typedef struct dshader_s {
char resourcename[64];
int surfaceflags;
int contentflags;
int dummy; // I still dont know what this is
char filename[64];
} dshader_t;

Just thought I'd share.

-chacham15
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Thanks, dude, but we've got it already. ;) That filename part is either the image pointed at by the qer_editorimage shader param (i.e. the image to be shown in Radiant texture browser) or the filename of the image of the first stage in the shader. Either way, OpenMoHAA doesn't make any use of it, as it just loads the shader.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
chacham15
Private
Posts: 7
Joined: Sun Apr 20, 2008 8:00 pm

Post by chacham15 »

I was just letting you know since its marked in the file as 'dummy' (and also as ints)

700 typedef struct {
701 char shader[MAX_QPATH];
702 int surfaceFlags;
703 int contentFlags;
704
705 int dummy[17];
706 } dshader_t;

-chacham15
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

OK, thanks for your input. :)
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply