Skip to content

Latest commit

 

History

History
122 lines (81 loc) · 5.25 KB

ne-d2d1effects-d2d1_pointspecular_prop.md

File metadata and controls

122 lines (81 loc) · 5.25 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NE:d2d1effects.D2D1_POINTSPECULAR_PROP
D2D1_POINTSPECULAR_PROP (d2d1effects.h)
Identifiers for properties of the Point-specular lighting effect.
D2D1_POINTSPECULAR_PROP
D2D1_POINTSPECULAR_PROP enumeration [Direct2D]
D2D1_POINTSPECULAR_PROP_COLOR
D2D1_POINTSPECULAR_PROP_KERNEL_UNIT_LENGTH
D2D1_POINTSPECULAR_PROP_LIGHT_POSITION
D2D1_POINTSPECULAR_PROP_SCALE_MODE
D2D1_POINTSPECULAR_PROP_SPECULAR_CONSTANT
D2D1_POINTSPECULAR_PROP_SPECULAR_EXPONENT
D2D1_POINTSPECULAR_PROP_SURFACE_SCALE
d2d1effects/D2D1_POINTSPECULAR_PROP
d2d1effects/D2D1_POINTSPECULAR_PROP_COLOR
d2d1effects/D2D1_POINTSPECULAR_PROP_KERNEL_UNIT_LENGTH
d2d1effects/D2D1_POINTSPECULAR_PROP_LIGHT_POSITION
d2d1effects/D2D1_POINTSPECULAR_PROP_SCALE_MODE
d2d1effects/D2D1_POINTSPECULAR_PROP_SPECULAR_CONSTANT
d2d1effects/D2D1_POINTSPECULAR_PROP_SPECULAR_EXPONENT
d2d1effects/D2D1_POINTSPECULAR_PROP_SURFACE_SCALE
direct2d.d2d1_pointspecular_prop
direct2d\d2d1_pointspecular_prop.htm
Direct2D
5026F106-F5AA-4D03-BEFE-F1E8E880EF44
12/05/2018
D2D1_POINTSPECULAR_PROP, D2D1_POINTSPECULAR_PROP enumeration [Direct2D], D2D1_POINTSPECULAR_PROP_COLOR, D2D1_POINTSPECULAR_PROP_KERNEL_UNIT_LENGTH, D2D1_POINTSPECULAR_PROP_LIGHT_POSITION, D2D1_POINTSPECULAR_PROP_SCALE_MODE, D2D1_POINTSPECULAR_PROP_SPECULAR_CONSTANT, D2D1_POINTSPECULAR_PROP_SPECULAR_EXPONENT, D2D1_POINTSPECULAR_PROP_SURFACE_SCALE, d2d1effects/D2D1_POINTSPECULAR_PROP, d2d1effects/D2D1_POINTSPECULAR_PROP_COLOR, d2d1effects/D2D1_POINTSPECULAR_PROP_KERNEL_UNIT_LENGTH, d2d1effects/D2D1_POINTSPECULAR_PROP_LIGHT_POSITION, d2d1effects/D2D1_POINTSPECULAR_PROP_SCALE_MODE, d2d1effects/D2D1_POINTSPECULAR_PROP_SPECULAR_CONSTANT, d2d1effects/D2D1_POINTSPECULAR_PROP_SPECULAR_EXPONENT, d2d1effects/D2D1_POINTSPECULAR_PROP_SURFACE_SCALE, direct2d.d2d1_pointspecular_prop
d2d1effects.h
Windows
Windows
D2D1_POINTSPECULAR_PROP
19H1
D2D1_POINTSPECULAR_PROP
d2d1effects/D2D1_POINTSPECULAR_PROP
c++
APIRef
kbSyntax
HeaderDef
d2d1effects.h
D2D1_POINTSPECULAR_PROP

D2D1_POINTSPECULAR_PROP enumeration

-description

Identifiers for properties of the Point-specular lighting effect.

-enum-fields

-field D2D1_POINTSPECULAR_PROP_LIGHT_POSITION:0

The light position of the point light source. The property is a D2D1_VECTOR_3F defined as (x, y, z). The units are in device-independent pixels (DIPs) and the values are unitless and unbounded.

The type is D2D1_VECTOR_3F.

The default value is {0.0f, 0.0f, 0.0f}.

-field D2D1_POINTSPECULAR_PROP_SPECULAR_EXPONENT:1

The exponent for the specular term in the Phong lighting equation. A larger value corresponds to a more reflective surface. This value is unitless and must be between 1.0 and 128.

The type is FLOAT.

The default value is 1.0f.

-field D2D1_POINTSPECULAR_PROP_SPECULAR_CONSTANT:2

The ratio of specular reflection to the incoming light. The value is unitless and must be between 0 and 10,000.

The type is FLOAT.

The default value is 1.0f.

-field D2D1_POINTSPECULAR_PROP_SURFACE_SCALE:3

The scale factor in the Z direction for generating a height map. The value is unitless and must be between 0 and 10,000.

The type is FLOAT.

The default value is 1.0f.

-field D2D1_POINTSPECULAR_PROP_COLOR:4

The color of the incoming light. This property is exposed as a D2D1_VECTOR_3F – (R, G, B) and used to compute LR, LG, LB.

The type is D2D1_VECTOR_3F.

The default value is {1.0f, 1.0f, 1.0f}.

-field D2D1_POINTSPECULAR_PROP_KERNEL_UNIT_LENGTH:5

The size of an element in the Sobel kernel used to generate the surface normal in the X and Y directions. This property maps to the dx and dy values in the Sobel gradient. This property is a D2D1_VECTOR_2F(Kernel Unit Length X, Kernel Unit Length Y) and is defined in (DIPs/Kernel Unit). The effect uses bilinear interpolation to scale the bitmap to match size of kernel elements.

The type is D2D1_VECTOR_2F.

The default value is {1.0f, 1.0f}.

-field D2D1_POINTSPECULAR_PROP_SCALE_MODE:6

The interpolation mode the effect uses to scale the image to the corresponding kernel unit length. There are six scale modes that range in quality and speed.

The type is D2D1_POINTSPECULAR_SCALE_MODE.

The default value is D2D1_POINTSPECULAR_SCALE_MODE_LINEAR.

-field D2D1_POINTSPECULAR_PROP_FORCE_DWORD:0xffffffff