Print at Dec 16, 2025, 10:54:16 PM

Posted by enkonyito at Jun 5, 2019, 12:01:32 AM
Re: Additional Sunflow options (tests)
* Options:
-quick_uvs : Renders the UVs of objects.
-quick_normals : Renders the normals of objects.
-quick_id : Renders using a unique color for each instance.
-quick_prims : Renders using a unique color for each primitive.
-quick_gray : Renders all the objects in the scene gray diffuse, overriding all shaders.
-quick_wire : Renders objects as wireframe.
-quick_ambocc X : Renders a scene in ambient occlusion mode with a certain distance (X).
Only one override shader at a time can be used.

SH3D implementation:
String shaderOverride = null; // "show_uvs","show_normals","show_instance_id","show_primitive_id","quick_gray","wireframe","ambient_occlusion"
if (shaderOverride.equals("ambient_occlusion")) {
float maxDist = 200f;
this.sunflow.parameter("maxdist", maxDist);
}
this.sunflow.shader("cmdline_override", shaderOverride);
this.sunflow.parameter("override.shader", "cmdline_override");
this.sunflow.options(SunflowAPI.DEFAULT_OPTIONS);


shaderOverride != null



----------------------------------------
EnkoNyito