Fix accidentally removed particle function in GLSL, still not supported though.

This commit is contained in:
Brecht Van Lommel 2018-07-10 15:35:59 +02:00
parent 0a04314d06
commit dd7a727910
1 changed files with 17 additions and 0 deletions

View File

@ -170,6 +170,23 @@ void color_to_blender_normal_new_shading(vec3 color, out vec3 normal)
/*********** SHADER NODES ***************/
void particle_info(
vec4 sprops, vec4 loc, vec3 vel, vec3 avel,
out float index, out float random, out float age,
out float life_time, out vec3 location,
out float size, out vec3 velocity, out vec3 angular_velocity)
{
index = sprops.x;
random = loc.w;
age = sprops.y;
life_time = sprops.z;
size = sprops.w;
location = loc.xyz;
velocity = vel;
angular_velocity = avel;
}
void vect_normalize(vec3 vin, out vec3 vout)
{
vout = normalize(vin);