GLSL shader export patch #27524
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#27524
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
%%%This patch adds the python module 'gpu' to blender with one method in it:
export_shader(scene,material) to export the GLSL shader for use in an external
game engine.
The intention is to use this API in the X3D exporter to allow using the GLSL
shader unchanged in the H3D game engine. The function export everything that's
needed to use the shader.
Documentation in shader_export.txt
The patch modifies the GLSL library code by converting all 1D textures to 2D
textures for compatibility with X3D. To keep it small, the patch does not
include the modified
source/blender/gpu/intern/gpu_shader_material.glsl.c
You must run
release/datafiles/datatoc.py source/blender/gpu/intern/gpu_shader_material.glsl
after applying the patch to update the C version of the GLSL library.
The patch is also available for code review in http://codereview.appspot.com/4529098/
%%%
Changed status to: 'Open'
%%%Updated the patch to fix a minor typing error in the temporary GPUInputUniform structure: lamp field is an Object and not a Lamp datablock.
%%%
Added subscriber: @mont29
Is this patch still relevant/alive?
This patch has been integrated in trunk a long time ago in trunk. It's no long relevant as a patch.
Thanks Benoit, time to close then!
Changed status from 'Open' to: 'Resolved'
Added subscriber: @kevindietrich
So... closing! :)