Added plugin folder with hdStorm #6

Merged
Bogdan Nagirniak merged 1 commits from add-plugin into storm-hydra-addon 2023-03-24 18:10:04 +01:00
4 changed files with 38 additions and 2 deletions
Showing only changes of commit 0492a85f71 - Show all commits

View File

@ -3,11 +3,13 @@
# <pep8 compliant>
from pathlib import Path
import bpy
from bpy_hydra import HydraRenderEngine
import bpy_hydra
class StormHydraRenderEngine(HydraRenderEngine):
class StormHydraRenderEngine(bpy_hydra.HydraRenderEngine):
bl_idname = 'StormHydraRenderEngine'
bl_label = "Hydra: Storm"
bl_info = "Hydra Storm (OpenGL) render delegate"
@ -17,6 +19,12 @@ class StormHydraRenderEngine(HydraRenderEngine):
delegate_id = 'HdStormRendererPlugin'
@classmethod
def register(cls):
super().register()
bpy_hydra.register_plugins([str(Path(__file__).parent / "plugin")], [])
def get_delegate_settings(self, engine_type):
settings = bpy.context.scene.hydra_storm
return {

View File

@ -0,0 +1,3 @@
{
"Includes": [ "usd/*/resources/" ]
}

View File

@ -0,0 +1,22 @@
{
"Plugins": [
{
"Info": {
"Types": {
"HdStormRendererPlugin": {
"bases": [
"HdRendererPlugin"
],
"displayName": "GL",
"priority": 0
}
}
},
"LibraryPath": "",
"Name": "hdStorm",
"ResourcePath": "resources",
"Root": "..",
"Type": "library"
}
]
}

View File

@ -0,0 +1,3 @@
{
"Includes": [ "*/resources/" ]
}