Blender V4.3
eevee_velocity_info.hh File Reference

Go to the source code of this file.

Surface Velocity

Combined with the depth pre-pass shader. Outputs the view motion vectors for animated objects.

smooth(Type::VEC3, "prev") .smooth(Type CameraData
 
smooth(Type::VEC3, "prev") .smooth(Type camera_prev camera_next
 
 mat4
 
velocity_obj_prev_buf[] vec4
 
velocity_obj_prev_buf[] velocity_geo_prev_buf[] VelocityIndex
 
 float
 
smooth(Type::VEC3, "prev") .smooth(Type define ("VELOCITY_CAMERA") .uniform_buf(VELOCITY_CAMERA_PREV_BUF
 
smooth(Type::VEC3, "prev") .smooth(Type camera_prev uniform_buf (VELOCITY_CAMERA_CURR_BUF, "CameraData", "camera_curr") .uniform_buf(VELOCITY_CAMERA_NEXT_BUF
 
 define ("MAT_VELOCITY") .storage_buf(VELOCITY_OBJ_PREV_BUF_SLOT
 
velocity_obj_prev_buf[] storage_buf (VELOCITY_OBJ_NEXT_BUF_SLOT, Qualifier::READ, "mat4", "velocity_obj_next_buf[]") .storage_buf(VELOCITY_GEO_PREV_BUF_SLOT
 
velocity_obj_prev_buf[] velocity_geo_prev_buf[] storage_buf (VELOCITY_GEO_NEXT_BUF_SLOT, Qualifier::READ, "vec4", "velocity_geo_next_buf[]") .storage_buf(VELOCITY_INDIRECTION_BUF_SLOT
 
velocity_obj_prev_buf[] velocity_geo_prev_buf[] velocity_indirection_buf[] vertex_out (eevee_velocity_surface_iface) .fragment_out(0
 
velocity_obj_prev_buf[] velocity_geo_prev_buf[] velocity_indirection_buf[] out_velocity additional_info ("eevee_velocity_camera")
 
 compute_source ("eevee_vertex_copy_comp.glsl") .local_group_size(VERTEX_COPY_GROUP_SIZE) .storage_buf(0
 

Function Documentation

◆ additional_info()

velocity_obj_prev_buf[] velocity_geo_prev_buf[] velocity_indirection_buf[] out_velocity additional_info ( "eevee_velocity_camera" )

◆ compute_source()

compute_source ( "eevee_vertex_copy_comp.glsl" )

◆ define() [1/2]

define ( "MAT_VELOCITY" )

◆ define() [2/2]

smooth(Type::VEC3, "prev") .smooth(Type define ( "VELOCITY_CAMERA" )

◆ storage_buf() [1/2]

velocity_obj_prev_buf[] velocity_geo_prev_buf[] storage_buf ( VELOCITY_GEO_NEXT_BUF_SLOT ,
Qualifier::READ ,
"vec4" ,
"velocity_geo_next_buf" [] )

◆ storage_buf() [2/2]

velocity_obj_prev_buf[] storage_buf ( VELOCITY_OBJ_NEXT_BUF_SLOT ,
Qualifier::READ ,
"mat4" ,
"velocity_obj_next_buf" [] )

◆ uniform_buf()

smooth(Type::VEC3, "prev") .smooth(Type camera_prev uniform_buf ( VELOCITY_CAMERA_CURR_BUF ,
"CameraData" ,
"camera_curr"  )

◆ vertex_out()

velocity_obj_prev_buf[] velocity_geo_prev_buf[] velocity_indirection_buf[] vertex_out ( eevee_velocity_surface_iface )

Variable Documentation

◆ camera_next

smooth(Type::VEC3, "prev") .smooth(Type camera_prev camera_next

Definition at line 25 of file eevee_velocity_info.hh.

◆ CameraData

smooth(Type::VEC3, "prev") .smooth(Type camera_prev CameraData

Definition at line 23 of file eevee_velocity_info.hh.

◆ float

float

Definition at line 44 of file eevee_velocity_info.hh.

◆ mat4

◆ vec4

◆ VelocityIndex

velocity_obj_prev_buf[] velocity_geo_prev_buf[] VelocityIndex

Definition at line 35 of file eevee_velocity_info.hh.