Cycles microdisplacement: add max subdivision setting

This is to prevent situations such as when the camera gets very close to a mesh
and causes it to be tessellated into an excessive amount of micropolygons. In
REYES this is known as the eye-splits problem.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D1922
This commit is contained in:
2016-04-18 22:35:49 +02:00
committed by Brecht Van Lommel
parent 71588300d2
commit 3068ea34e4
7 changed files with 97 additions and 5 deletions

View File

@@ -173,6 +173,7 @@ private:
bool is_cpu;
float dicing_rate;
int max_subdivisions;
struct RenderLayerInfo {
RenderLayerInfo()