forked from blender/blender
Create possibility to provide render settings via BlenderSceneDelegate #41
@ -23,14 +23,13 @@ class CustomHydraRenderEngine(HydraRenderEngine):
|
||||
|
||||
def get_sync_settings(self, engine_type):
|
||||
|
||||
return {
|
||||
'setting1': True,
|
||||
'setting2': "2",
|
||||
'MaterialXFilenameKey': "MaterialXFilename",
|
||||
}
|
||||
|
||||
def get_render_settings(self, engine_type):
|
||||
return {
|
||||
'setting1': 1,
|
||||
'setting2': "2",
|
||||
'enableTinyPrimCulling': True,
|
||||
'maxLights': 8,
|
||||
}
|
||||
```
|
||||
"""
|
||||
@ -80,9 +79,18 @@ class HydraRenderEngine(bpy.types.RenderEngine):
|
||||
pass
|
||||
|
||||
def get_sync_settings(self, engine_type):
|
||||
"""
|
||||
Provide settings for Blender scene delegate. Available settings:
|
||||
`MaterialXFilenameKey` - if provided then MaterialX file will be provided directly to render delegate
|
||||
without converting to HdMaterialNetwork
|
||||
"""
|
||||
return {}
|
||||
|
||||
def get_render_settings(self, engine_type):
|
||||
"""
|
||||
Provide render settings for render delegate. List of settings should be available in render delegate
|
||||
documentation or in `pxr.UsdImagingGL.Engine.GetRendererSettingsList()`
|
||||
"""
|
||||
return {}
|
||||
|
||||
# final render
|
||||
|
Loading…
Reference in New Issue
Block a user
Consider to add a note that these settings refer to keys that Hydra asks.