public void UpdateRenderingData() { CreatureRenderModule.UpdateRenderingData( creature_manager, counter_clockwise, ref vertices, ref normals, ref tangents, ref colors, ref uvs, creature_asset, skin_swap_active, active_animation_name, ref final_indices, ref final_skin_swap_indices, ref triangles, ref skin_swap_triangles); bool should_skin_swap = CreatureRenderModule.shouldSkinSwap(creature_asset, skin_swap_active, ref skin_swap_triangles); active_mesh.vertices = vertices; active_mesh.colors32 = colors; active_mesh.triangles = should_skin_swap ? skin_swap_triangles: triangles; active_mesh.normals = normals; active_mesh.tangents = tangents; active_mesh.uv = uvs; //CreatureRenderModule.debugDrawBones(creature_manager.target_creature.render_composition.getRootBone ()); }
public void UpdateTime() { CreatureRenderModule.UpdateTime( creature_manager, game_controller, active_animation_name, local_time_scale, region_offsets_z, should_loop, ref local_time); }
public void CreateRenderingData() { CreatureRenderModule.CreateRenderingData( creature_manager, ref vertices, ref normals, ref tangents, ref colors, ref uvs, ref triangles, ref final_indices); }
public void EnableSkinSwap(String swap_name_in, bool active) { CreatureRenderModule.EnableSkinSwap( swap_name_in, active, creature_manager, creature_asset, ref skin_swap_active, ref skin_swap_name, ref skin_swap_triangles, ref final_skin_swap_indices); }
public virtual void Reset() { meshFilter = GetComponent <MeshFilter>(); active_mesh = null; mesh1 = CreatureRenderModule.createMesh(); mesh2 = CreatureRenderModule.createMesh(); vertices = null; normals = null; colors = null; uvs = null; swap_mesh = false; local_time = 0; }
public void CreateRenderingData() { CreatureModule.CreatureMeshModifier mesh_modifier = null; if (creature_particles) { mesh_modifier = creature_particles.mesh_modifier; } CreatureRenderModule.CreateRenderingData( creature_manager, ref vertices, ref normals, ref tangents, ref colors, ref uvs, ref triangles, ref final_indices, mesh_modifier); }
public void UpdateTime() { float real_time_scale = Application.isPlaying ? local_time_scale : 0.0f; if (custom_speeds.Count > 0) { var cur_animation_name = creature_manager.GetActiveAnimationName(); if (custom_speeds.ContainsKey(cur_animation_name)) { real_time_scale = Application.isPlaying ? custom_speeds[cur_animation_name] : 0.0f; } } CreatureRenderModule.UpdateTime( creature_manager, game_controller, creature_asset.creature_meta_data, active_animation_name, real_time_scale, region_offsets_z, should_loop, ref local_time); }
// Add your own custom Skin Swap into the object public bool AddSkinSwap(String swap_name, HashSet <String> swap_set) { return(CreatureRenderModule.AddSkinSwap(creature_asset, swap_name, swap_set)); }