Lines Matching refs:scalar
130 color VoxelColor(flt scalar) { in VoxelColor() argument
133 if (scalar > 1.0) in VoxelColor()
134 scalar = 1.0; in VoxelColor()
136 if (scalar < 0.0) in VoxelColor()
137 scalar = 0.0; in VoxelColor()
139 if (scalar < 0.25) { in VoxelColor()
140 col.r = scalar * 4.0; in VoxelColor()
145 if (scalar < 0.75) { in VoxelColor()
147 col.g = (scalar - 0.25) * 2.0; in VoxelColor()
153 col.b = (scalar - 0.75) * 4.0; in VoxelColor()
168 flt scalar, transval; in scalar_volume_texture() local
278 scalar = (flt)((flt)1.0 * ((int)ptr[0])) / 255.0; in scalar_volume_texture()
280 sum += tt * scalar; in scalar_volume_texture()
282 transval = tt * scalar; in scalar_volume_texture()
284 col2 = VoxelColor(scalar); in scalar_volume_texture()