SoView2DShaderDevicePosition¶
- InventorModule¶
genre
author
package
dll
definition
inherits from
keywords
Purpose¶
The SoView2DShaderDevicePosition module projects the given world position to the device coordinates of the current SoView2D that is rendered.
This is useful to get actual screen pixel coordinates for a given coordinate.
The coordinate is provided as “vec2” uniform.
Output Fields¶
self¶
- name: self, type: SoNode¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible Fields¶
Name¶
- name: name, type: String, default: position¶
The name of the uniform.
World Position¶
- name: worldPosition, type: Vector3, default: 0 0 0¶
Sets the world position that should be mapped to a device position.