Moderators: Nexuiz Moderators, Moderators
textures/spirecontrolshaders/terrain
{
qer_editorimage textures/arboria/rockmod.tga
q3map_lightmapSampleOffset 8
q3map_globalTexture
q3map_nonplanar
q3map_shadeangle 95
q3map_alphaMod dotproduct2scale ( 0 0 1 1.5 -0.5 )
q3map_tcmod scale 0.5 0.5 // <---------------- change these numbers for the scaling you want
q3map_tcMod rotate 30
{
map textures/bztourny/arkhart-grass2.png // Primary
}
{
map textures/bztourny/ppracer_rock.png // Secondary
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}
(%i1) expand_to_range(f, min, max) := min + (max-min) * f;
(%o1) expand_to_range(f, min, max) := min + (max - min) f
(%i2) deg2rad(a) := a * atan(1) / 45;
a atan(1)
(%o2) deg2rad(a) := ---------
45
(%i3) alpha(angle, min, max) := expand_to_range(cos(deg2rad(angle))^2, min, max);
2
(%o3) alpha(angle, min, max) := expand_to_range(cos (deg2rad(angle)), min, max)
(%i4) solve([alpha(X, min, max) = 0, alpha(Y, min, max) = 1], [min, max]);
2 %pi X 2 %pi X
cos (-----) cos (-----) - 1
180 180
(%o4) [[min = -------------------------, max = -------------------------]]
2 %pi X 2 %pi Y 2 %pi X 2 %pi Y
cos (-----) - cos (-----) cos (-----) - cos (-----)
180 180 180 180
(%i6) %o4, X=10, Y=60, numer;
(%o6) [[min = 1.347296355333861, max = - .04188906600158222]]
(%i7) %o4, X=30, Y=60, numer;
(%o7) [[min = 1.5, max = - .4999999999999998]]
Return to Nexuiz - Map Reviews
Users browsing this forum: No registered users and 1 guest