API Documentation: GPU module - uniform types, out of date #45505
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
8 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#45505
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?
First, Sorry, I'm not sure where to report documentation issues. If it's wrong here, can you please move it to the right place? Thank you!
Blender Version
Broken: 2.75
Worked: 2.73 (?)
Several GPU uniform types have been added, which are not documented yet, on
http://www.blender.org/api/blender_python_api_2_75_release/gpu.html#glsl-uniform-type
Some results of our own research:
GPU_DYNAMIC_AMBIENT_COLOR // world.ambient_color
GPU_DYNAMIC_HORIZON_COLOR // world.horizon_color
GPU_DYNAMIC_LAMP_ATT1 // lamp.linear_attenuation(?) ... or swapped with ATT2?
GPU_DYNAMIC_LAMP_ATT2 // lamp.quadratic_attenuation(?) ... or swapped with ATT1?
GPU_DYNAMIC_LAMP_DISTANCE // lamp.distance (?)
GPU_DYNAMIC_LAMP_SPOTBLEND // lamp.spot_blend
GPU_DYNAMIC_LAMP_SPOTSIZE // lamp.spot_size
GPU_DYNAMIC_MAT_ALPHA // material.alpha
GPU_DYNAMIC_MAT_AMB // material.ambient (ambient intensity)
GPU_DYNAMIC_MAT_DIFFRGB // material.diffuse_color
GPU_DYNAMIC_MAT_EMIT // material.emit
GPU_DYNAMIC_MAT_HARD // material.specular_hardness (?)
GPU_DYNAMIC_MAT_REF // material.specular_ior (?????)
GPU_DYNAMIC_MAT_SPEC // material.specular_intensity
GPU_DYNAMIC_MAT_SPECRGB // material.specular_color
GPU_DYNAMIC_MIST_COLOR // ???
GPU_DYNAMIC_MIST_DISTANCE // world.mist_settings.depth(???)
GPU_DYNAMIC_MIST_ENABLE // world.mist_settings.use_mist
GPU_DYNAMIC_MIST_INTENSITY // world.mist_settings.intensity
GPU_DYNAMIC_MIST_START // world.mist_settings.start
GPU_DYNAMIC_MIST_TYPE // world.mist_settings.falloff (???)
Changed status to: 'Open'
Added subscriber: @MichaelOtto
Added subscriber: @souljedi
Furthermore, the values of the already documented uniform types are not correct anymore and have some 6 digit long hash code or so.
Added subscriber: @Blendify
Added subscribers: @Psy-Fi, @ideasman42, @Sergey
@ideasman42, @Psy-Fi, think this one is for you guys.
@Blendify, #documentation project is about blender.org/manual. API-related documentation is #BF_blender.
Added subscriber: @JulianEisel
Eeeeeh, but think we should handle this as todo? Changing for now.
Added subscriber: @wacampbell
Would a moderator, or the owner please remove this from the Documentation project.
Removed subscriber: @wacampbell
This issue was referenced by
1c5b15eab3
Changed status from 'Open' to: 'Resolved'
See updated docs here: http://www.blender.org/api/blender_python_api_2_75_4/gpu.html