/// <summary> /// Renders the properties in the block. /// </summary> protected override void OnGUIOpen() { materialEditor.PopupShaderProperty(m_MappingMode, Styles.mappingModeText, MappingModeNames); AxFMappingMode mappingMode = (AxFMappingMode)m_MappingMode.floatValue; m_MappingMask.vectorValue = AxFAPI.AxFMappingModeToMask(mappingMode); if (mappingMode >= AxFMappingMode.PlanarXY) { ++EditorGUI.indentLevel; materialEditor.ShaderProperty(m_PlanarSpace, Styles.planarSpaceText); --EditorGUI.indentLevel; } materialEditor.ShaderProperty(m_MaterialTilingOffset, Styles.materialTilingOffsetText); // We only display the ray tracing option if the asset supports it if ((RenderPipelineManager.currentPipeline as HDRenderPipeline).rayTracingSupported) { materialEditor.ShaderProperty(m_RayTracingTexFilteringScale, Styles.rayTracingTexFilteringScaleText); } }
public override void ValidateMaterial(Material material) => AxFAPI.ValidateMaterial(material);