Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Override Materials

Raoul v. R edited this pageJun 6, 2023 ·1 revision

Some passes and effects useoverride materials to render special data such as view space normals. This system has several shortcomings and fails when the scene contains a mix of instanced/skinned and basic meshes. Since version6.14.0, there's an optional workaround for this particular problem.

The workaround is disabled by default because it can have a negative impact on performance when the scene contains a lot of meshes. To enable the workaround globally for all passes and effects, do the following:

import{OverrideMaterialManager}from"postprocessing";OverrideMaterialManager.workaroundEnabled=true;

This will fix override materials for passes and materials that use them. If you don't use effects that use override materials, the workaround will remain inactive. The following effects and passes currently rely on override materials:

  • OutlineEffect
  • SSAOEffect
  • SelectiveBloomEffect
  • DepthPass
  • NormalPass

It's recommended to enable the workaround before the render loop starts.

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp