Lines Matching refs:tex
85 texture *tex; in newextvol() local
87 tex = (texture *)voidtex; in newextvol()
97 xvol->ambient = tex->ambient; in newextvol()
98 xvol->diffuse = tex->diffuse; in newextvol()
99 xvol->opacity = tex->opacity; in newextvol()
102 xvol->tex = (texture *)rt_getmem(sizeof(texture)); in newextvol()
103 memset(xvol->tex, 0, sizeof(texture)); in newextvol()
105 xvol->tex->ctr.x = 0.0; in newextvol()
106 xvol->tex->ctr.y = 0.0; in newextvol()
107 xvol->tex->ctr.z = 0.0; in newextvol()
108 xvol->tex->rot = xvol->tex->ctr; in newextvol()
109 xvol->tex->scale = xvol->tex->ctr; in newextvol()
110 xvol->tex->uaxs = xvol->tex->ctr; in newextvol()
111 xvol->tex->vaxs = xvol->tex->ctr; in newextvol()
112 xvol->tex->islight = 0; in newextvol()
113 xvol->tex->shadowcast = 0; in newextvol()
115 xvol->tex->col = tex->col; in newextvol()
116 xvol->tex->ambient = 1.0; in newextvol()
117 xvol->tex->diffuse = 0.0; in newextvol()
118 xvol->tex->specular = 0.0; in newextvol()
119 xvol->tex->opacity = 1.0; in newextvol()
120 xvol->tex->img = nullptr; in newextvol()
121 xvol->tex->texfunc = (color(*)(void *, void *, void *))(ext_volume_texture); in newextvol()
122 xvol->tex->obj = (void *)xvol; /* XXX hack! */ in newextvol()
149 color ext_volume_texture(vector *hit, texture *tex, ray *ry) { in ext_volume_texture() argument
168 bx = (box *)tex->obj; in ext_volume_texture()
169 xvol = (extvol *)tex->obj; in ext_volume_texture()
306 diffint.r += inten * li->tex->col.r; in ext_volume_texture()
307 diffint.g += inten * li->tex->col.g; in ext_volume_texture()
308 diffint.b += inten * li->tex->col.b; in ext_volume_texture()