MCPcopy Create free account
hub / github.com/HumbleUI/Skija / makePointLitSpecular

Method makePointLitSpecular

shared/java/ImageFilter.java:1008–1016  ·  view source on GitHub ↗

Create a filter that calculates the specular illumination from a point light source, using alpha channel of the input as the height profile of the surface (to approximate normal vectors). @param x The location of the point light (X component) @param y The location of the poi

(float x, float y, float z, int lightColor, float surfaceScale, float ks, float shininess, @Nullable ImageFilter input, @Nullable Rect crop)

Source from the content-addressed store, hash-verified

1006 * @return filter that applies point specular lighting
1007 */
1008 @NotNull @Contract("_, _, _, _, _, _, _, _, _ -> new")
1009 public static ImageFilter makePointLitSpecular(float x, float y, float z, int lightColor, float surfaceScale, float ks, float shininess, @Nullable ImageFilter input, @Nullable Rect crop) {
1010 try {
1011 Stats.onNativeCall();
1012 return new ImageFilter(_nMakePointLitSpecular(x, y, z, lightColor, surfaceScale, ks, shininess, Native.getPtr(input), crop));
1013 } finally {
1014 ReferenceUtil.reachabilityFence(input);
1015 }
1016 }
1017
1018 @NotNull @Contract("_, _, _, _, _, _, _, _, _ -> new")
1019 public static ImageFilter makePointLitSpecular(float x, float y, float z, int lightColor, float surfaceScale, float ks, float shininess, @Nullable ImageFilter input, @Nullable IRect crop) {

Callers 1

drawLightsMethod · 0.95

Calls 4

onNativeCallMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by

no test coverage detected