MODIFY SHADERS AND RENDER TEXTURES ON CURVED SURFACES
DOI:
https://doi.org/10.15588/1607-3274-2025-4-19Keywords:
game development, shaders, spline, rendering, custom raycaster, curvilinear surfaces, user interface, visualizationAbstract
Context. The display of curvilinear surfaces on flat screens is a complex task. The development of an interface for such surfaces is a relevant task that requires the solution of numerous issues. This paper presents an approach to UI development for curvilinear surfaces and shader modifications for the creation of realistic landscape elements. The object of the research is the development of an interface system based on a custom raycaster to ensure interactivity and create an immersive effect within the game environment.
Objective. The purpose of the paper. The primary objective of this research is to create, optimise and adapt shaders on curved surfaces to achieve more efficient rendering with high-quality visualisation.
Method. The development of user interfaces (UI) for curvilinear surfaces requires consideration of geometric parameters. To resolve this issue, a custom component based on BaseRaycaster was developed, enabling the computation of the intersection between the camera ray and the physical surface. To provide correct and efficient interaction with the canvas a custom component based on BaseRaycaster was created. The developed component solves the problem by identifying the ray intersection point from the camera with the canvas surface. The implementation of this component involves an algorithm for detecting the camera’s ray intersections with colliders, using a mathematical model to process the detected elements, according for their depth to ensure proper interaction.
Results.This approach facilitates the creation of interfaces on arbitrary static curved surfaces that are applicable in various gaming and interactive scenarios.
Conclusions. The use of splines and modified shaders ensures the placement of text on curvilinear surfaces and the natural arrangement of roads and other landscape elements according to the terrain contours. This approach is important for developing openworld games or games with complex geometry, where the UI on curvilinear surfaces appears natural and integrated into the environment.
References
Ilett D. Building Quality Shaders for Unity®. Using Shader Graphs and HLSL Shaders. Berkeley, Apress, 2022, 734 p. ISBN 978-1-4842-8651-7. Mode of access: https://doi.org/10.1007/978-1-4842-8652-4.
Xiao D., Liu Z., Wang S. Metamorphic Shader Fusion for Testing Graphics Shader Compilers, IEEE/ACM 45th International Conference on Software Engineering (ICSE), Melbourne, Australia, 14–20 May. 2023. Melbourne, Australia, IEEE, 2023, pp. 2400–2412. Mode of access:
https://doi.org/10.1109/ICSE48619.2023.00201.
Souza D. A., Mota R. R.Materials for games – An overview on creating materials for games materials for games, Extended Proceedings of the XX Brazilian Symposium on Games and Digital Entertainment, Porto Alegre, Brazil, 18–21 October. 2021. Porto Alegre, Brazilian Computer Society, 2021, pp. 136–142. URL: https://doi.org/10.5753/sbgames_estendido.2021.19633.
Liang Y. et al. Automatic Mesh and Shader Level of Detail, EEE Transactions on Visualization and Computer Graphics (TVCG), 2023, vol. 29, No. 10, pp. 4284–4295. Mode of access: https://doi.org/10.1109/TVCG.2022.3188775.
Akenine-Möller T. et al. Improved shader and texture level of detail using ray cones, Journal of Computer Graphics Techniques (JCGT), 2021, Vol. 10, No 1, pp. 1–24. ISSN 2331- 7418. Mode of access: http://jcgt.org/published/0010/01/01/.
Konnurmath G., Chickerur S. GPU Shader Analysis and Power Optimization Model, Engineering, Technology & Applied Science Research, 2024, vol. 14, no 1, pp. 12925–12930. Mode of access: https://doi.org/10.48084/etasr.6695.
Sasso E., Loiacono D., Lanzi P. L. A Tool for the Procedural Generation of Shaders Using Interactive Evolutionary Algorithms, 2024 IEEE Gaming, Entertainment, and Media Conference (GEM), Turin, Italy, 5–7 June. 2024. Turin, Italy, 2024, pp. 1–4. Mode of access:
https://doi.org/10.1109/GEM61861.2024.10585418.
Nishidate Y., Fujishiro I. Efficient Particle-Based Fluid Surface Reconstruction Using Mesh Shaders and Bidirectional TwoLevel Grids, Proceedings of the ACM on Computer Graphics and Interactive Techniques, 2024, Vol. 7, No 1, pp. 1–14. Mode of access: https://doi.org/10.1145/3651285.
Tricard T. Interval Shading: using Mesh Shaders to generate shading intervals for volume rendering, Proceedings of the ACM on Computer Graphics and Interactive Techniques, 2024, Vol. 7, No 3, pp. 1–11. Mode of access: https://doi.org/10.1145/3675380.
Huo Y. et al. ed.: Nandigjav M., Mitra N. J., Hertzmann A. ShaderTransformer: Predicting Shader Quality via One-shot Embedding for Fast Simplification, SIGGRAPH ’22: ACM SIGGRAPH 2022 Conference Proceedings, Vancouver BC, Canada, 7–11 July 2022. New York, NY, United States, 2022, pp. 1–9. ISBN 978-1-4503-9337-9. Mode of access: https://doi.org/10.1145/3528233.3530722.
Wiryadi F. I., Kosala R. R. Particle rendering using geometry shader, 1st International Conference on Game, Game Art, and Gamification (ICGGAG), Jakarta, Indonesia, 19–21 December 2016. Jakarta, Institute of Electrical and Electronics Engineers (IEEE), pp. 1–9. Mode of access: https://doi.org/10.1109/ICGGAG.2016.8052661.
Bissell B. et al. A cultural heritage game for entertainment, Archiving Conference 2021, Granada, Spain, 1–6 July 2021. Kilworth Lane, Springfield, VA 22151 USA, Society for Imaging Science and Technology, 2021, pp. 1–6. Mode of access: https://doi.org/10.2352/issn.2168-3204.2021.1.0.2.
Zhao L. et al. Graph Mining and Machine Learning for Shader Codes Analysis to Accelerate GPU Tuning, Complex Networks and Their Applications XI, 4 January 2023. Cham, Springer, 2023, pp. 426–439. Mode of access: https://doi.org/10.1007/978-3-031-21127-0_35.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 I. Suhoniak, G. Marchuk, O. Oleksiuk

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Creative Commons Licensing Notifications in the Copyright Notices
The journal allows the authors to hold the copyright without restrictions and to retain publishing rights without restrictions.
The journal allows readers to read, download, copy, distribute, print, search, or link to the full texts of its articles.
The journal allows to reuse and remixing of its content, in accordance with a Creative Commons license СС BY -SA.
Authors who publish with this journal agree to the following terms:
-
Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License CC BY-SA that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
-
Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
-
Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) as it can lead to productive exchanges, as well as earlier and greater citation of published work.