Remove voxels in favor of rt
This commit is contained in:
@@ -100,10 +100,6 @@ function make_material_parse_mesh_material() {
|
||||
}
|
||||
|
||||
context_raw.ddirty = 2;
|
||||
|
||||
///if arm_voxels
|
||||
make_material_make_voxel(m);
|
||||
///end
|
||||
}
|
||||
|
||||
function make_material_parse_particle_material() {
|
||||
@@ -178,25 +174,6 @@ function make_material_parse_mesh_preview_material() {
|
||||
array_push(m._.shader._.contexts, scon);
|
||||
}
|
||||
|
||||
///if arm_voxels
|
||||
function make_material_make_voxel(m: material_data_t) {
|
||||
let rebuild: bool = make_material_height_used;
|
||||
if (config_raw.rp_gi != false && rebuild) {
|
||||
let scon: shader_context_t = null;
|
||||
for (let i: i32 = 0; i < m._.shader._.contexts.length; ++i) {
|
||||
let c: shader_context_t = m._.shader._.contexts[i];
|
||||
if (c.name == "voxel") {
|
||||
scon = c;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (scon != null) {
|
||||
make_voxel_run(scon);
|
||||
}
|
||||
}
|
||||
}
|
||||
///end
|
||||
|
||||
function make_material_parse_paint_material(bake_previews: bool = true) {
|
||||
if (!make_material_get_mout()) {
|
||||
return;
|
||||
@@ -386,11 +363,6 @@ function make_material_get_displace_strength(): f32 {
|
||||
return config_raw.displace_strength * 0.02 * sc.x;
|
||||
}
|
||||
|
||||
function make_material_voxelgi_half_extents(): string {
|
||||
let ext: i32 = context_raw.vxao_ext;
|
||||
return "const vec3 voxelgi_half_extents = vec3(" + ext + ", " + ext + ", " + ext + ");";
|
||||
}
|
||||
|
||||
function make_material_delete_context(c: shader_context_t) {
|
||||
app_notify_on_next_frame(function (c: shader_context_t) { // Ensure pipeline is no longer in use
|
||||
shader_context_delete(c);
|
||||
|
||||
Reference in New Issue
Block a user