Is there a way to determine if a sampler has been given a valid texture? I am trying to draw a world in which some objects are textured and some are not. However, in the fragment shader I have not found a way to determine if the texture should be accessed.
Perhaps the preferred method is to use two separate fragment shaders, one for textured polygons and one for non-textured polygons. Is this the case?
Thanks