Add CreateInfo for GPU_SHADER_2D_WIDGET_SHADOW #95012
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#95012
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?
See parent task for more details.
**
vflag
**
ModelViewProjectionMatrix
**
parameters- [x]
(but use the aliases inside the shader (recti
,rect
,radsi
,rads
,roundCorners
)Added subscriber: @Jeroen-Bakker
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @Sonny-Campbell
Hey @Jeroen-Bakker, I have a change locally for this task that compiles and runs fine, but I'm not 100% sure what I should be looking for. Where exactly should I be looking for the shadow?
I'd like to set some very obviously weird values to make sure my changes are actually being applied and doing something, and then validate my change results in the expected look.
So I did some more digging and from what I can tell, the only place GPU_SHADER_2D_WIDGET_SHADOW is used is in ui_draw_dropshadow() in interface_draw.c, however ui_draw_dropshadow() isn't actually called anywhere.
Is this something that we can remove entirely, or is it something that needs to stick around for api reasons?
Hi thanks for your effort, could be a shader for addon widgets will ask around if someone knows and let you know.
Have you already uploaded the patch?
Happy to help!
I haven't uploaded it yet, but I added the ui_draw_dropshadow() call into another function to get it tested and all seems to be working as expected. I can hold off uploading anything until we have an answer, and grab one of the other CreateInfo tasks in the meantime?
@Sonny-Campbell if you have a patch it is better to upload it so we can have a look.
Seems that the shader is used by the node editor to draw shaders borders around the nodes.
Added subscriber: @Sanskar-M-Chaubey
Added subscriber: @xsmingerfan
Added subscriber: @jeroen-10
@Jeroen-Bakker Hi, I upload a diff on this task. Can you review it?
Changed status from 'Confirmed' to: 'Resolved'