{"library":"panda3d-simplepbr","title":"Panda3D SimplePBR","description":"Panda3D SimplePBR (version 0.13.1) is a lightweight, drop-in Physically Based Rendering (PBR) shader system for Panda3D. It provides a visual upgrade over Panda3D's default auto shader with minimal code changes, making it easy to integrate PBR workflows. The project is actively maintained with a steady release cadence addressing bug fixes and feature enhancements.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install panda3d-simplepbr"],"cli":null},"imports":["import simplepbr","simplepbr.init()"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from direct.showbase.ShowBase import ShowBase\nfrom panda3d.core import DirectionalLight, AmbientLight, VBase4\nimport simplepbr\n\n# Standard Panda3D ShowBase setup\nbase = ShowBase()\nbase.camLens.setNearFar(0.1, 1000.0)\n\n# Initialize SimplePBR - this is the core step\nsimplepbr.init()\n\n# Load a test model (Panda3D's default smiley)\nsmiley = base.loader.loadModel('smiley')\nsmiley.reparentTo(base.render)\nsmiley.setPos(0, 5, 0)\nsmiley.setHpr(0, 90, 0)\n\n# Add a directional light\ndlight = DirectionalLight('dlight')\ndlight.setColor(VBase4(0.8, 0.8, 0.8, 1))\ndlnp = base.render.attachNewNode(dlight)\ndlnp.setHpr(0, -60, 0)\nbase.render.setLight(dlnp)\n\n# Add some ambient light\nalight = AmbientLight('alight')\nalight.setColor(VBase4(0.2, 0.2, 0.2, 1))\nalnp = base.render.attachNewNode(alight)\nbase.render.setLight(alnp)\n\nbase.run()","lang":"python","description":"This quickstart initializes a basic Panda3D scene, loads a default model, and then enables SimplePBR with `simplepbr.init()`. It also sets up minimal lighting required for PBR to function, demonstrating how SimplePBR integrates seamlessly with Panda3D's existing lighting system.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}