Currently, I am working on a three.js scene where I am rendering points and line segments. The scene displays perfectly when I use a LineBasicMaterial material for the lines:
/**
* constructor for the gl manager
**/
function World() {
// Code implementation here...
}
// Other functions and methods in the World prototype...
var world = new World();
// CSS code snippet here...
I have encountered difficulties in achieving the same scene using rawshadermaterial for the lines. Below is one approach I have attempted to configure the lines for the raw shader material:
World.prototype.addEdges = function() {
// Code implementation here...
}
Despite my efforts, this method does not render anything. Could anyone provide guidance on how I can successfully render the lines with the raw shader material as described above? Any advice or insights would be greatly appreciated!