Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/subd/subd_dice.h
| Show All 34 Lines | struct SubdParams { | ||||
| Mesh *mesh; | Mesh *mesh; | ||||
| int shader; | int shader; | ||||
| bool smooth; | bool smooth; | ||||
| bool ptex; | bool ptex; | ||||
| int test_steps; | int test_steps; | ||||
| int split_threshold; | int split_threshold; | ||||
| float dicing_rate; | float dicing_rate; | ||||
| int max_level; | |||||
| Camera *camera; | Camera *camera; | ||||
| Transform objecttoworld; | Transform objecttoworld; | ||||
| SubdParams(Mesh *mesh_, int shader_, bool smooth_ = true, bool ptex_ = false) | SubdParams(Mesh *mesh_, int shader_, bool smooth_ = true, bool ptex_ = false) | ||||
| { | { | ||||
| mesh = mesh_; | mesh = mesh_; | ||||
| shader = shader_; | shader = shader_; | ||||
| smooth = smooth_; | smooth = smooth_; | ||||
| ptex = ptex_; | ptex = ptex_; | ||||
| test_steps = 3; | test_steps = 3; | ||||
| split_threshold = 1; | split_threshold = 1; | ||||
| dicing_rate = 0.1f; | dicing_rate = 0.1f; | ||||
| max_level = 12; | |||||
| camera = NULL; | camera = NULL; | ||||
| } | } | ||||
| }; | }; | ||||
| /* EdgeDice Base */ | /* EdgeDice Base */ | ||||
| class EdgeDice { | class EdgeDice { | ||||
| ▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines | |||||