Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/shaders/gpu_shader_material.glsl
| Context not available. | |||||
| frontback = (gl_FrontFacing)? 1.0: 0.0; | frontback = (gl_FrontFacing)? 1.0: 0.0; | ||||
| } | } | ||||
| void particle_info(vec4 sprops, vec3 loc, vec3 vel, vec3 avel, out float index, out float age, out float life_time, out vec3 location, out float size, out vec3 velocity, out vec3 angular_velocity) | |||||
| { | |||||
| index = sprops.x; | |||||
| age = sprops.y; | |||||
| life_time = sprops.z; | |||||
| size = sprops.w; | |||||
| location = loc; | |||||
| velocity = vel; | |||||
| angular_velocity = avel; | |||||
| } | |||||
| void mapping(vec3 vec, mat4 mat, vec3 minvec, vec3 maxvec, float domin, float domax, out vec3 outvec) | void mapping(vec3 vec, mat4 mat, vec3 minvec, vec3 maxvec, float domin, float domax, out vec3 outvec) | ||||
| { | { | ||||
| outvec = (mat * vec4(vec, 1.0)).xyz; | outvec = (mat * vec4(vec, 1.0)).xyz; | ||||
| Context not available. | |||||