style: autoformat
Co-authored-by: pejour <pejour@users.noreply.github.com>
This commit is contained in:
parent
984db29300
commit
37aa9f0ac5
19
Texture.java
19
Texture.java
|
@ -15,22 +15,21 @@ public class Texture {
|
||||||
/**
|
/**
|
||||||
* Constructs a new Texture with the content of the image at @path.
|
* Constructs a new Texture with the content of the image at @path.
|
||||||
*/
|
*/
|
||||||
public Texture (String path) throws Exception {
|
public Texture(String path) throws Exception {
|
||||||
image = ImageIO.read (new File (path));
|
image = ImageIO.read(new File(path));
|
||||||
width = image.getWidth ();
|
width = image.getWidth();
|
||||||
height = image.getHeight ();
|
height = image.getHeight();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Samples the texture at texture coordinates (u,v), using nearest neighboor interpolation
|
* Samples the texture at texture coordinates (u,v), using nearest neighboor
|
||||||
|
* interpolation
|
||||||
* u and v and wrapped around to [0,1].
|
* u and v and wrapped around to [0,1].
|
||||||
*/
|
*/
|
||||||
public Color sample (double u, double v) {
|
public Color sample(double u, double v) {
|
||||||
|
|
||||||
|
/* A COMPLETER */
|
||||||
|
|
||||||
/* A COMPLETER */
|
return new Color(0, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
return new Color (0,0,0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue