Post

Replies

Boosts

Views

Activity

Reply to How to disable Metal compiler warnings for SceneKit / ARKit?
I've silenced the warnings by crudely referencing the internal variable and function being complained about. For every node that has geometry add the following shader modifier code: scn::reduce_op(vec4(0, 0, 0, 0), vec4(0, 0, 0, 0)); const metal::sampler s = scn_shadow_sampler_ord_z; while (&s > &s) { break; } For example: myNode.geometry?.shaderModifiers?[SCNShaderModifierEntryPoint.surface] = """ scn::reduce_op(vec4(0, 0, 0, 0), vec4(0, 0, 0, 0)); const metal::sampler s = scn_shadow_sampler_ord_z; while (&s > &s) { break; } """
Sep ’20