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)
| 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) { |
no test coverage detected