screen space reflections in three js code example
Example 1: make dots in three js
var dotGeometry = new THREE.Geometry();
dotGeometry.vertices.push(new THREE.Vector3( 0, 0, 0));
var dotMaterial = new THREE.PointsMaterial( { size: 1, sizeAttenuation: false } );
var dot = new THREE.Points( dotGeometry, dotMaterial );
scene.add( dot );
Example 2: how to get the screen dimensions in java
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();